I've the following query:
"query" : { "bool" : { "should" : [ { "fuzzy" : { "title" : { "min_similarity" : 0.6, "boost" : 2, "value" : term } } }, { "fuzzy" : { "entities.text" : { "min_similarity" : 0.6, "boost" : 3, "value" : term } } } ], "minimum_number_should_match": 1, } }
If term is "Thompsn" I get the following results:
results: 2 [{'entities': [u'Bill Thompson'], 'summary': u'Bill Thompson is con', 'title': u'Bill Thompson Concedes Democratic Nomination In NYC Mayor Race To Bill De Blasio: Report'}, {'entities': [], 'summary': u'AP\nThe Ravens took a', 'title': u'Ravens Pierce, Thompson getting checkedout'}]
But if term is "Bill thompsn" I get 0 results. I don't know what I'm doing wrong, I've been reading the ES documentation but didn't find a way to solve this.
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.