On Mon, Aug 22, 2011 at 5:34 AM, occurred < schaubm...@infodienst-ausschreibungen.de> wrote:
> Hi, > > I've created my own custom FilterFactory or better to say rewritten an > existing one: > KeywordMarkerFilterFactory > to: > CachingKeywordMarkerFilterFactory > > It will/should reload the protwords every minute. > > But now I found out that this FilterFactory is only called a few times when > me server startup, but then never again. > > Is there a config needed to have this FilterFactory called every time for > indexing and quering? > That's correct. The factory will be called at startup once for each occurrence in the schema. It will create the object containing the protected words (e.g. CharArraySet protectedWords) at that time. The #create method uses this object when a field is being tokenized.. Can you post your code ? and - what problem are you trying to solve with the CachingKeyworkMarkerFilter ? FWIW, I've been looking at a more generalized way of tracking changes in protwords/stopwords/ etc and it's turning out to be quite complex. -Simon > > cheers > Charlie > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Custom-FilterFactory-is-when-called-tp3274503p3274503.html > Sent from the Solr - User mailing list archive at Nabble.com. >