Re: LeafCollector

2016-12-05 Thread Matt Hicks
Interesting. Are there any examples of how to actually use
DiversifiedTopDocsCollector?

On Fri, Dec 2, 2016 at 8:53 AM Adrien Grand  wrote:

> Maybe you could use DiversifiedTopDocsCollector?
> https://lucene.apache.org/core/6_2_0/misc/org/apache/lucene/search/DiversifiedTopDocsCollector.html
>
> Le jeu. 1 déc. 2016 à 23:08, Michael McCandless 
> a écrit :
>
> Lucene used to have a DuplicateFilter to do this, but we removed it
> recently ... see https://issues.apache.org/jira/browse/LUCENE-6633 for
> some discussion as to why.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Thu, Dec 1, 2016 at 2:39 PM, Matt Hicks  wrote:
> > I'm trying to write a LeafCollector that filters out duplicates for a
> > specific field. However, looking at the JavaDoc for `collect` it says not
> > to call `IndexSearch.doc` or `IndexReader.document`.  How am I supposed
> to
> > determine the value of a field and then exclude it?
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


Re: LeafCollector

2016-12-02 Thread Adrien Grand
Maybe you could use DiversifiedTopDocsCollector?
https://lucene.apache.org/core/6_2_0/misc/org/apache/lucene/search/DiversifiedTopDocsCollector.html

Le jeu. 1 déc. 2016 à 23:08, Michael McCandless 
a écrit :

> Lucene used to have a DuplicateFilter to do this, but we removed it
> recently ... see https://issues.apache.org/jira/browse/LUCENE-6633 for
> some discussion as to why.
>
> Mike McCandless
>
> http://blog.mikemccandless.com
>
>
> On Thu, Dec 1, 2016 at 2:39 PM, Matt Hicks  wrote:
> > I'm trying to write a LeafCollector that filters out duplicates for a
> > specific field. However, looking at the JavaDoc for `collect` it says not
> > to call `IndexSearch.doc` or `IndexReader.document`.  How am I supposed
> to
> > determine the value of a field and then exclude it?
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


Re: LeafCollector

2016-12-01 Thread Michael McCandless
Lucene used to have a DuplicateFilter to do this, but we removed it
recently ... see https://issues.apache.org/jira/browse/LUCENE-6633 for
some discussion as to why.

Mike McCandless

http://blog.mikemccandless.com


On Thu, Dec 1, 2016 at 2:39 PM, Matt Hicks  wrote:
> I'm trying to write a LeafCollector that filters out duplicates for a
> specific field. However, looking at the JavaDoc for `collect` it says not
> to call `IndexSearch.doc` or `IndexReader.document`.  How am I supposed to
> determine the value of a field and then exclude it?

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