Hi, I imported a sample data:
{ "account_number": 0, "balance": 16623, "firstname": "Bradshaw", "lastname": "Mckenzie", "age": 29, "gender": "F", "address": "244 Columbus Place", "employer": "Euron", "email": "bradshawmcken...@euron.com", "city": "Hobucken", "state": "CO" } Now, this query returns empty result (expected); curl -XPOST 'localhost:9200/bank/_search?pretty' -d ' { "query": { "bool": { "must": [ { "match": { "age": "29" } } ], "must_not": [ { "match": { "city": "Hobucken" } } ] } } }' But if I replace the "city" part with "H" or "Ho" etc. It doesn't return the expected empty result, why is that? It only works with full word, why is that? -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a8391d3b-0ed7-4eb6-9984-6f6fb9cf211e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.