Thanks. I do not mind the first or the last document. Most
importantly, that in filtered documents there were no duplicates for a
given field (in fact I need to group the filtered results to the
specified field). Trying to use PerParentLimitingQuery and
NestedDocumentQuery.
---
The DuplicateFilter passed to the searcher does not have visibility of the text
query and is therefore evaluated independently from all other criteria.
Sounds like the behaviour you want is to get the last duplicate that also
matches your criteria, which seems like something fairly common to need
df (DuplicateFilter) is the second parameter in the searcher.search metod.
>> ScoreDoc[] hits = searcher.search(q, df, 1000).scoreDocs;
This varians doesn't hit too:
ScoreDoc[] hits = searcher.search(new FilteredQuery(tq, df), new
QueryWrapperFilter(new TermQuery(new Term("text", "now"))),
1000).s
Where is df (the DuplicateFilter) used in your code?
-
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: u...@thetaphi.de
> -Original Message-
> From: Паша Минченков [mailto:char...@gmail.com]
> Sent: Monday, May 31, 2010 8:27 AM
> To: java-user@lucene.a