Yonik, I want to display 120th. up to 150th. document
in Hits. Do you mean that Hits does not contain id
of all relevant documents? I thought that search will
return all document ids with their score and Lucene
prefetches first 100 document to speed the process.
My index contains complete text (yes, it is stored),
so feeding 100 documents, when I will display only 30
of them (or noone at all) is IMHO waste of time.
I would like to have a control and specify, how many
documents to prefetch.
Am I wrong?
leos
Yonik Seeley wrote:
The actual fields of found documents are not prefetched, only the ids.
And imagine, that user is on fourth
page - reading first 100 document is waste of time.
As it relates to document ids, you must know what the first 100 are if
you are to know which ones follow.
If you want more control over how this is all done, you can use the
expert level search methods that return TopDocs or TopFieldDocs.
-Yonik
On 1/7/06, Leos Literak <[EMAIL PROTECTED]> wrote:
Hello,
I found in Lucenebook, that searching always reads
first first 100 documents. I take a look to java
source code and found that in Hits.java. I cannot
find any easy way, how to forbid this behaviour.
motivation: my page size is 30. It is useless to
read 100 documents, when I will display only small
portion of it. And imagine, that user is on fourth
page - reading first 100 document is waste of time.
Thanks for your idea
Leos
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]