Re: set keepword file to be used based on a field value

2014-12-22 Thread Tomoko Uchida
Hi Leo, Yes, my image is similar to yours. > If the value ends with "_CAT1" ==> use > as keepword file "keepwords1.txt" and so on? But my second option is not about configurations, but "customizing" Solr. Utilizing customizability of Lucene/Solr, you can write your own TokenFilter class. Maybe y

Re: set keepword file to be used based on a field value

2014-12-22 Thread leostro
Hi Tomoko, I understand you first reply and the first hint (one field for each categoryid). I thought this was a relatively "common" scenario. I'm interested in understanding the option you are talking about in the second reply. > you can tell "which keepwords set (file) shoud be used" to custom

Re: set keepword file to be used based on a field value

2014-12-21 Thread Tomoko Uchida
Sorry this is confusing... > have your own custom KeepwordFilter that holds multiple keepwords set and > switch them based on a parameter, you can tell "which keepwords set (file) shoud be used" to custom filter by adding special prefix (or something like) to the target field value. but of course

Re: set keepword file to be used based on a field value

2014-12-21 Thread Tomoko Uchida
Hi, I cannot fully understand your point, but you would like to apply KeepwordFilter to "title" field and switch keepword files based on "categoryId" field value ? I think that is essntially difficult because an Analyzer (including Filters) cannot take into account another field values except for