I think you're really writing a custom update processor that creates its own analysis chain to do what you want. Likely this would be somewhat expensive unless you could batch together user's documents so you'd only have to fetch the stopwords once.
Then you'd have to do something equivalent at query time, assuming you allowed query-time synonyms too. Doing this per-user sounds like an ambitions project, I'd really ask if it's worth the effort? If you took the approach of having one collection per user, it would all "just work", but depending on how many users you have it could get difficult. Best, Erick On Sat, Mar 28, 2015 at 4:14 PM, sylkaalex <sylkaa...@gmail.com> wrote: > My main goal creating custom stop word filter which will connect to my db and > get stopwords list which will be different for each user. This filter will > be attached to deal_title field and during indexing my documents I need to > know which user is owner of this document (I can get this info from user_id > field) and use appropriate stop words list for this user. > > <field name="user_id" type="int" indexed="true" stored="true" > required="true" multiValued="false" /> > <field name="deal_title" type="text_general" indexed="true" stored="true" > required="false" multiValued="false"/> > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Can-SOLR-custom-analyzer-access-another-field-s-value-tp4195851p4196110.html > Sent from the Solr - User mailing list archive at Nabble.com.