reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

Its not searching the contains and postfix string.

Open atindersingh67 opened this issue 3 years ago • 1 comments

Discussed in https://github.com/appbaseio/reactivesearch/discussions/1835

Originally posted by atindersingh67 January 5, 2022 I am using reactive search . Its searching the text with prefix only, but its not search text with postfix and contains. For eg. i have description filed with the data 'product1 BN2445 with red color' if search for 'prod' , 'red' or 'color' its giving me results, But if i search with '2445' its not giving me result,

My index creation code is below, `POST /product2/product {

"settings": { "index": { "analysis" : { "analyzer":{ "autosuggest_analyzer": { "filter": [ "lowercase", "asciifolding", "autosuggest_filter" ], "tokenizer": "standard", "type": "custom" }, "ngram_analyzer": { "filter": [ "lowercase", "asciifolding", "ngram_filter" ], "tokenizer": "standard", "type": "custom" } }, "filter": { "autosuggest_filter": { "max_gram": "7", "min_gram": "1", "token_chars": [ "letter", "digit", "punctuation", "symbol" ], "type": "edge_ngram" }, "ngram_filter": { "max_gram": "9", "min_gram": "2", "token_chars": [ "letter", "digit", "punctuation", "symbol" ], "type": "ngram" } } }, "max_ngram_diff":"50" } }, "mappings" : {

    "properties" : {
      "@timestamp" : {
        "type" : "date"
      },
      "@version" : {
        "type" : "text",
        "fields" : {
          "keyword" : {
            "type" : "keyword",
            "ignore_above" : 256
          }
        }
      },
    
      "standardiseddescription" : {
        "type" : "text",
         "fields" : {
          "keyword" : {
            "type" : "keyword",
            "ignore_above" : 256
          }
        }
      }
    }
  }

}`

And my data search component is below

<DataSearch componentId="result" dataField = {[ "standardiseddescription" ]} fuzziness = {'AUTO'} size = {3} autosuggest={true} queryFormat="and" style = {{ marginBottom: 20 }} URLParams={true} />

I have already spend 3 days on this. Thanks in advance

atindersingh67 avatar Jan 06 '22 06:01 atindersingh67

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 10 '22 11:07 stale[bot]