Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 58581 invoked from network); 21 Apr 2005 19:40:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Apr 2005 19:40:09 -0000 Received: (qmail 35043 invoked by uid 500); 21 Apr 2005 19:40:25 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 34828 invoked by uid 500); 21 Apr 2005 19:40:24 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 34812 invoked by uid 99); 21 Apr 2005 19:40:24 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from smtp-vbr1.xs4all.nl (HELO smtp-vbr1.xs4all.nl) (194.109.24.21) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 21 Apr 2005 12:40:24 -0700 Received: from k8l.lan (porta.xs4all.nl [80.127.24.69]) by smtp-vbr1.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3LJe2Vo058613 for ; Thu, 21 Apr 2005 21:40:02 +0200 (CEST) (envelope-from paul.elschot@xs4all.nl) From: Paul Elschot To: java-dev@lucene.apache.org Subject: Re: search on stored, unindexed fields? Date: Thu, 21 Apr 2005 21:40:02 +0200 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504212140.02091.paul.elschot@xs4all.nl> X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Thursday 21 April 2005 20:47, Robert Engels wrote: > Has there ever been any work done to allow the searching on stored, but > unindexed fields? Only indexed fields can be searched, but any field can be both indexed and stored. > It does not seems to be trivial, since a user could use and/or constructs > that mixed indexed and non-indexed fields. > > On a related note, does lucene optimize the search based on term frequency? > > So that if I use +field1:value1 and +field2:value0 and it knows that the > second term is much more unique, it will do that search first, and use > skipTo on the first one? If so, does the same happen for range searches? The implementation of conjunctions (both terms required) is actually symmetrical on both terms, but the effect is what you expect. Range queries are disjunctions and they are implemented differently. Please have a look at BooleanScorer and ConjunctionScorer in package org.apache.lucene.search for the details. Regards, Paul Elschot. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org