lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe <>
Subject Get all terms of a specific field
Date Tue, 27 Jul 2010 12:50:27 GMT

what would be the fastest way to get all terms for all documents 
matching a specific query?

Sofar I:

1.) Query the index
2.) Retrieve all scoreDocs
3.) Iterate the scoreDocs and retrieve all terms using the getValues 
method and a customised "FieldSelector"

However, retrieving and iterating the scoredocs is quite costly.  So is 
there a better/faster way to perform this?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message