How did you store the data when you indexed it? If you didn't store it, it
won't be available for retrieval (although it will be available for
searching if you indexed it with, say Field.Index.TOKENIZED). See
Field.Store.YES.
These are for the Document.add call.
Best
Erick
P.S. It would be bett
Hi all,
when i search for a particular text by lucene search engine. I get
correct number of document for that word but its document name and summary
is return as null.
display message is :
Document Summary
null null
null null
null null
null null
if someone has any idea about this
: Scorer scorer =
: query.weight(indexSearcher).scorer(indexSearcher.getIndexReader());
You'd need to rewrite the query first to be safe.
A slightly higher level API approach would be a HitCollector that just
counts the hits...
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Hi
On Monday 29 May 2006 15:54, z shalev wrote:
> hi all,
>
> is there a faster way to retrieve ONLY the count of results for a query?
>
> lucene ranks (scores) the first batch of docs and sorts them by rank, this
is functionality i dont need in certain queries and i assume, not doing