Help Getting Exact matches on text field

Hey guys , i am facing an issue with exact match on text fields.

i am using the keyword analyzer during mapping but i have an exact match requirement.

Example data item1 : "Hamburger" ,item2: "Big Hamburger

my issue is that when i search for exact q = Hamburger i get Big Hamburger as well ...

Desired behaviour q= Hamburger only Hamburger comes back not

*Hamburger

or

Hamburger*

in other searches i have the concept of startsWith endsWith and contains ( all good there )

i tried match and terms queries also span_near with slop 0

thanks in advance!

solved the issue by creating an extra field

  "noindex":{
    type:"keyword" ,
    index:true }

and using that one to search in the full text !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.