Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 62689 invoked from network); 7 Nov 2010 08:30:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Nov 2010 08:30:31 -0000 Received: (qmail 25595 invoked by uid 500); 7 Nov 2010 08:31:00 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 25402 invoked by uid 500); 7 Nov 2010 08:30:57 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 25394 invoked by uid 99); 7 Nov 2010 08:30:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:30:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of senthilruban@gmail.com designates 209.85.216.176 as permitted sender) Received: from [209.85.216.176] (HELO mail-qy0-f176.google.com) (209.85.216.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Nov 2010 08:30:50 +0000 Received: by qyk32 with SMTP id 32so412033qyk.14 for ; Sun, 07 Nov 2010 01:30:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=08yuKCs0Hh3jmADfZSe/o5mjW/pUfF+duBmLXKKE5Ec=; b=ghRKcJ2ELjaXMl4eT35+oIwKphMyG53boDy1zUc/l2ovwxYGwZZyug4FvrCWjRHVru d7MeBybko0RJc1Zq00c0sbyF+q3FQ3Wh0Gpwl3WKaqrwSrinoFIsL9KrZwITP0JnKE+5 hcI4MbFzF76nyB2caBXZDoenNdAMU34X6AP6w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=qwLnhBCionIdxQT6i+BuHtTM1l14ghoTRll+wtDPTqir4f/mG/kFV1xDluTewJ4Pox fq/7inyun4OXAdlzS4LVvjmYOzzBRmVJcXy8/jlZZl8lCdbUpCU8bG3+/NbQOt2X7Ixr pW4UtwJ3to5wyMKFX0XZPQ9uzM7H4MIO2LIno= MIME-Version: 1.0 Received: by 10.229.87.72 with SMTP id v8mr3754595qcl.215.1289118629473; Sun, 07 Nov 2010 01:30:29 -0700 (PDT) Received: by 10.229.187.18 with HTTP; Sun, 7 Nov 2010 01:30:29 -0700 (PDT) In-Reply-To: <70996.40597.qm@web113306.mail.gq1.yahoo.com> References: <70996.40597.qm@web113306.mail.gq1.yahoo.com> Date: Sun, 7 Nov 2010 21:30:29 +1300 Message-ID: Subject: Re: Newbie Question From: Senthil To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016367f99f8fbaff5049472519f --0016367f99f8fbaff5049472519f Content-Type: text/plain; charset=ISO-8859-1 Hi, 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. regards Senthil 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 > > > --0016367f99f8fbaff5049472519f--