lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From farouk alhassan <>
Subject Re: Newbie Question
Date Sun, 07 Nov 2010 09:09:36 GMT
Thanks for your response.
I have already done that and understand the code perfectly.

Just to rephrase my question

What is the relationship between an index and a document at the conceptual level.

Does an index include a document or an index is a collection of documents?

Also is index == document if there is only one document?


--- On Sun, 7/11/10, Senthil <> wrote:

From: Senthil <>
Subject: Re: Newbie Question
Date: Sunday, 7 November, 2010, 8:30

  I recommend you to try simple indexer and searcher code from book which
clear the confusion.

  You need to specify the indexing folder and all the fields and values
selected for indexing will stored in that folder. And during search, it
searches from index and get the reference file path for search result too.


On Sun, Nov 7, 2010 at 8:18 PM, farouk alhassan <>wrote:

> Hi All,
> I'm new to Lucene and have picked up the Lucene in Action book to get
> started. Really enjoying it but I have a small nagging question.
> Is the index stored in the same "physical document" as the fields and
> values? If not, where is it stored and how is it linked.
> This is because of this statement in the book
> When you retrieve a document from the index, only stored fields will be
> present. For example, fields that were indexed but not stored won't be in
> the document. This behavior
> is frequently a source of confusion
> Thanks
> Farouk A

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message