What is the propper replacement for Filters working in DocValue fields?

2016-03-23 Thread Hasenberger, Josef
Hello, I am migrating a rather large application from Lucene 4.10 to Lucene 5.5.0. Since Filters are deprecated in Lucene 5, I am looking for an efficient replacement in our code. We use many Filters that calculate the DocIdSet by doing a lookup of numeric DocValues in some collection. Everythi

Re: What is the propper replacement for Filters working in DocValue fields?

2016-03-23 Thread Sheng
One possible workaround I can think of is to make use of the CustomScoreQuery to do a posteri scoring, let documents not matching your criteria have score 0, and use a PostiveScoreOnlyCollector to harvest the search result. Now problem using CustomScoreQuery is FieldCache is deprecated too, but you

Persistence/Serialization of Automaton

2016-03-23 Thread José Tomás Atria
Hello! Is it possible to serialize Lucene's Automata? I see that the javadoc for the original BRICS package indicates that instances of Automaton implement Serialzable, but this is not the case with the Automaton class in Lucene 5+. I assume it is possible, considering that a FSA is basically jus