[pylucene-dev] Getting list of unique field values?
Kevin Ollivier
kevino at tulane.edu
Thu Aug 31 16:51:00 PDT 2006
Hi all,
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?
Thanks,
Kevin
More information about the pylucene-dev
mailing list