Skip to content

Its not searching the contains and postfix string. #1835

Discussion options

You must be logged in to vote

@atindersingh67

You're doing an infix search over here, for doing this effectively, you need to use a n-gram analyzer.

 "standardiseddescription" : {
        "type" : "text",
         "fields" : {
          "keyword" : {
            "type" : "keyword",
            "ignore_above" : 256
          },
          "infix-search": {
            "analyzer": "ngram_analyzer"
          }
        }
      }

Now change the data field in your search to standardiseddescription.infix-search.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by siddharthlatest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants