Newbie question on elasticsearch. I have set up the elasticsearch lucene index and use searching for names that contain some term, such as
search_response = es.search(index = 'sample', body = {'query':{'match':{'first_name':"JUST"}}})
This does not return me the name "JUSTIN" but the following query does
search_response = es.search(index = 'sample', body = {'query':{'match':{'first_name':"JUSTIN"}}})
What am I doing wrong? Shouldn't "match" query return me the records that contain the term? Thanks.
match query
will not get you records when you search forJUST
. you can try with JUST* inwildcard query
- Richa