lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Guttesen <tgutte...@gmail.com>
Subject Re: Search in a specific ScoreDiopoc result
Date Tue, 17 Sep 2013 12:34:19 GMT
Kkkutterujjjbbb hgggja
Den 17/09/2013 12.55 skrev "David Miranda" <david.b.miranda@gmail.com>:
>
> Hi,
>
> I want to do a kind of 'facet search', that initial research in a field of
> all documents in the Lucene index, and second search in other field of the
> documents returned to the first research.
>
> Currently I'm do the first research :
>
> Query q = new QueryParser(Version.LUCENE_43, "label", analyzer
> > ).parse(label);
> > TopScoreDocCollector collector = TopScoreDocCollector.create(MAX_HITS,
> > true);
> > searcher.search(q, collector);
> > ScoreDoc[] hits = collector.topDocs().scoreDocs;
>
>
> Now I want to the the next search only in ScoreDoc object and in other
> field? How can I do this? I searched and found something related to the
> lucene filters, but does not seem to do what I want.
>
> Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message