Specific stopwords


(Siddharth Gupta) #1

Hello,

I am trying to use some stopwords such as "Mr.", "Mrs.", "Senior", " Junior", "etc"

I have my mapping attached below.

But somehow I get the results when I type these words as queries.

Can somebody help me in this case ?

Thanks
Siddharth


(Mark Walkom) #2

You may need to put your mapping into gist/pastebin/etc and link to it instead?


(Siddharth Gupta) #3

`{
"analysis": {
"filter": {

      "filter_stop_custom": {
          "type":       "stop",
          "stopwords": [ "Mr.", "Mrs.", "Senior", "Junior" ]
      }        
  },

"analyzer": {
          "commaAnalyzer_titles": {
            "type" : "custom",
              "tokenizer" : "standard"
              "filter" : [ "lowercase", "filter_stop_custom" ]
         } , 
}

}
}`


(Siddharth Gupta) #4

@warkolm
I have just posted it!


(Siddharth Gupta) #5

I don't know why is it not able to stop the words in the list! Do you have any idea ?


(Jimferenczi) #6

Well you have a lowercase filter just before your filter_stop_custom and your stop words have uppercase letters ;). Try to move your lowercase filter after the stop words filter or use lowercase for your stop words.


(system) #7