[pylucene-dev] Getting list of unique field values?

Andi Vajda vajda at osafoundation.org
Thu Aug 31 17:54:50 PDT 2006


On Thu, 31 Aug 2006, Kevin Ollivier wrote:

> One thing I'd like to do with my indexes is provide a browsable list of 
> various metadata fields, such as Subject, so that users could click on any 
> subject in the index and get a list of documents which have that subject.
>
> I can currently do this by running a query like "Subject:[A TO Z]" then going 
> through the results, checking the Subject value against the unique subject 
> list and appending it if it doesn't exist. However, I have concerns about how 
> well that will perform on large indexes, so I was wondering if anyone knew of 
> any (Py)Lucene functions for doing this, which perhaps might be more 
> efficient or scalable?

Seems like a great question for java-user at lucene.apache.org where 
generic Lucene user questions are best answered.

Andi..


More information about the pylucene-dev mailing list