We need advanced stop words filter in Solr.

We need stopwords to be stored in db and ability to change them by users
(each user should have own stopwords). That's why I am thinking about
sending stop words to solr from our app or connect to our db from solr and
use updated stop words in custom StopFilterFactory.

Also each user will have own stopwords list which will be stored in mysql
db "stopwords" table. (id, user_id, stopword).

We have next index structure. This index will store data for all users.

  <field name="user_id" type="int" indexed="true" stored="true"
required="true" multiValued="false" />
  <field name="tag_name" type="text_general" indexed="true"
stored="true" required="false" multiValued="false"/>
  ...
  <field name="tag_description" type="text_general" indexed="true"
stored="true" required="false" multiValued="false"/>

I am not sure how to achive behaviour described above but I am thinking
about writing own custom StopFilterFactory which will grab stopwords from
db and use different stopwords for users while indexing their documents.

What you can suggest ? Is that possible ? Am I on right way ?

Reply via email to