Re: QueryParser changes query by itself [solved]

2017-08-22 Thread Steve Rowe
Hi Bernd, > On Aug 22, 2017, at 4:31 AM, Bernd Fehling > wrote: > > But the QueryBuilder only calls "stream.reset()", it never calls > "stream.end()" so that Filters > in the Analyzer chain can't do any cleanup (like my Filter wanted to do). > I moved my "cleanup" into reset() which feels like

Re: QueryParser changes query by itself [solved]

2017-08-22 Thread Bernd Fehling
Finally I solved the problem :-) I don't know if it's a bug or a feature in org.apache.lucene.util.QueryBuilder but I solved it in my Filter code which feels like a dirty hack. The TokeStream API says in the docs: https://lucene.apache.org/core/6_4_2/core/org/apache/lucene/analysis/TokenStream.ht