Match_Phrase_ Prefix


(saranjeet) #1

Hi I wanted to use match_phrase_prefix in query for getting result,but it is giving me empty result
while that particular match is available in the array of msid 7268 which is having value "0aadu" please can any body help me to fix this issue thanks in advance ,please check my below query and tell me where i am wrong

{"from":0,"size":250,"query":{"bool":{"must":[{"bool":{"must":[{"match_phrase_prefix":{"-5.search":{"query":"0a","slop":0,"max_expansions":50,"boost":1.0}}}],"adjust_pure_negative":true,"boost":1.0}},{"bool":{"must":[{"terms":{"msid":["7268","7277","7286","7303","7323","7329","7340","7370","7388","7395","7398","7401","7403","7413","7418"],"boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}}],"adjust_pure_negative":true,"boost":1.0}},"_source":{"includes":["-4","-3","-5","-6","-7","2433","1989","61d","420","442","443","1997","2455","2456","1986","3","1987","msid"],"excludes":},"sort":[{"-5":{"order":"asc","unmapped_type":"long"}}]}