Hi Herb,
On Fri, 14 Oct 2011, Herb Roitblat wrote:
I have an application where I would like to pick one document from somewhere
in the list of search results. For example, I would like to retrieve one
result at rank 57, another at rank 1223, etc. I'm not real clear on how to
do it.
I have seen some things on simulating pagination with lucene, some code on
using hitlists and some comments on hitlists being deprecated.
I have seen the class TopDocsCollector and the Lucene method
|*topDocs
<http://lucene.apache.org/java/2_9_3/api/core/org/apache/lucene/search/TopDocsCollector.html#topDocs%28int,%20int%29>*(int
start, int howMany)|
Returns the documents in the rage [start ..
I can see using topDocs with howMany = 1, but I'm wondering whether that
means that the sytem iterates over the entire return list until it finds the
the one at rank start?
Is this the best way to do it?
I'm using pyLucene 2.9 on Ubuntu 10.04.
Thanks for any pointers.
Your question is a general Lucene usage question, not specific to PyLucene.
The Lucene User mailing list, java-u...@lucene.apache.org (subscribe first
by sending mail to java-user-subscr...@lucene.apache.org) has much bigger
audience and people there can help you out more effectively. I suggest you
re-send your question there.
Andi..