I use the final examiner to autocomplete. These are my documents.
{ Title: CineMAX: Inorbit Mall, Cyberabad Suggest: { input: [ CineMAX: Inorbit Mall Cyberabad CineMAX: Inorbit Mall, Cyberabad ] output: CineMAX: Inorbit Mall, Cyberabad payload: { .... } weight: 1 } } { Title: INOX: Kolkata Suggest: { input: [ INOX: Kolkata INOX: Kolkata ] output: INOX: Kolkata payload: { .... } weight: 1 } }
Im using a completion request as shown below
{ "suggestion":{ "text":"inox", "completion":{ "field":"Suggest", "fuzzy":{ "edit_distance":1, "transpositions":true, "prefix_length":1, "min_length":4 } } } }
But here I get the output as
- CineMAX: Inorbit Mall, Cyberabad,
- INOX: Calcutta
I want to pay more attention to exact match. So I want INOX: Kolkata strong> at the top.
I split the header using php explode () .. so I can combine middle words as well. I donβt know how to raise specific words in the title ... Help me .. Thanks in advance
source share