'explain' shows only two differences between the two results: Hit on 'S' vs. hit on 'DqWjDCcsh S'
* idf(docFreq=1, maxDocs=1) vs. idf(docFreq=10, maxDocs=10) * fieldNorm(doc=0) vs. fieldNorm(doc=9) My possibly flawed understanding is that IDF is the inverse document frequency of the search term across the whole index — what confuses me is that these are results for the same term in the same index, so shouldn't the IDF be the same...? tia lee On Wednesday, October 1, 2014 11:24:17 AM UTC+1, Lee Gee wrote: > > I have an ElasticSearch string field configured for autocomplete like this: > > autocomplete_analyzer: > type: custom > tokenizer: whitespace > filter: [ lowercase, asciifolding, ending_synonym, > name_synonyms, autocomplete_filter ] > > autocomplete_filter: > type: edge_ngram > min_gram: 1 > max_gram: 20 > token_chars: [ letter, digit, whitespace, punctuation, symbol ] > > search_analyzer: > type: custom > tokenizer: whitespace > filter: [ lowercase, asciifolding, standard, name_synonyms, > ending_synonym ] > > > > I have a record where the field contains 'S XYZ', and lots of other > records where the field contains other words beginning S. > > I do not understand why, when I search for 'S XYZ', it is not the first > result. > > Could someone please explain ? > > Many thanks in anticipation > lee > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/681ebe12-7cfa-4ed6-a045-ad287545d4eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
