Alex - that’s definitely possible, with performance being the main 
consideration here.

But since this is for query time stop words, maybe instead your fronting 
application could take the users list and remove those words from the query 
before sending it to Solr? 

I’m curious what the ultimate goal / use case is for this feature, which may 
help us better guide you on ways to do what you need.


—
Erik Hatcher, Senior Solutions Architect
http://www.lucidworks.com <http://www.lucidworks.com/>




> On Mar 27, 2015, at 8:32 AM, Alex Sylka <sylkaa...@gmail.com> wrote:
> 
> 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