Re: (Edge)NGramFilterFactory and highlight

2014-12-21 Thread Bjørn Hjelle
Mingchun, yes, that is better, and it works fine. Thank you! Bjørn On Sat, Dec 20, 2014 at 1:26 PM, Mingchun Zhao mingchun.zha...@gmail.com wrote: Hi Bjørn, From solr4.4, the behavior of end offsets in EdgeNGramFilterFactory was changed due to the following issue,

set keepword file to be used based on a field value

2014-12-21 Thread leostro
Hi all, I made some test and now I'm able to use keepwords for searching some common brands name in the docs I have in my index. I have docs with only two fields: - a title - a categoryId The tests I made right now were based on videogame related rows, so I have a keepwords.txt containing words

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

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 it