Hi list,

can anyone give some hints about removing duplicates from a MultiPhraseQuery?

I have the list with:
List<Term[]> termarray = (MultiPhraseQuery) myquery).getTermArrays();

But the lucene javadocs have only add, no remove or delete.

Only idea so far is to build a temporary MultiPhraseQuery and iterate with each 
termarray.
Makes worst case O(n^2).

Any idea?

Regards
Bernd


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to