Hi Pranav,
The result would be a list of document ids, which can be used to retrieve
the document (Using an indexreader). Once you have the document, you could
fetch 'ANY' of the 'STORED' fields from the index for your purpose.
Directly, you'd not receive either the key field or any other field from the
'search' method.
Also, I'd suggest you to grab a copy of Lucene in Action 2nd Edition as it'd
help you a lot in understanding the way Lucene works/is used.

Anshum Gupta

On Wed, Jun 8, 2011 at 11:00 AM, Pranav goyal wrote:

Hi all,

I am getting confused in this thing,

Let say I make a lucene index using a document having a key field (which I
am storing as well as indexing)
and rest of my fields I am just indexing.

When I make some query what would be my result?
Will it be the field which I am storing or it can be anything?

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 7 | next ›
Discussion Overview
groupjava-user @
postedJun 8, '11 at 5:31a
activeJun 8, '11 at 1:18p



site design / logo © 2022 Grokbase