Return-Path: Delivered-To: apmail-lucene-general-archive@www.apache.org Received: (qmail 33043 invoked from network); 17 May 2008 18:39:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2008 18:39:19 -0000 Received: (qmail 15138 invoked by uid 500); 17 May 2008 18:39:20 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 14705 invoked by uid 500); 17 May 2008 18:39:19 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Received: (qmail 14694 invoked by uid 99); 17 May 2008 18:39:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2008 11:39:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.69.42.181] (HELO radix.cryptio.net) (208.69.42.181) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2008 18:38:34 +0000 Received: by radix.cryptio.net (Postfix, from userid 1007) id 2CB3F71C488; Sat, 17 May 2008 11:38:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by radix.cryptio.net (Postfix) with ESMTP id 1C5C771C485 for ; Sat, 17 May 2008 11:38:50 -0700 (PDT) Date: Sat, 17 May 2008 11:38:50 -0700 (PDT) From: Chris Hostetter To: general@lucene.apache.org Subject: Re: words close together - like google In-Reply-To: <17189864.post@talk.nabble.com> Message-ID: References: <17189864.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Does the position of the matches in the text affect the scoring? : : No, the position of matches within a field does not affect ranking. : : does that mean that lucene does not support what i imagine google is doing? no .. that comment is in regards to basic term queries. if you want the proximity of terms (to eachother) to affect the scoring this can be donw with a PhraseQuery or a SpanNearQuery. : (3) the lucene querying language described here : http://lucene.apache.org/java/2_3_2/queryparsersyntax.html seems very fancy. : but, i don't understand why, in the most common use cases, i need it. in : google, i just type some words, and it figures the rest out. for example: : - the more words i hit the better. i don't need to specify AND or OR : - the closer they are together the better. i don't need to specify : distance requirements you don't have to use the QueryParser ... it's just there for convinience. you're free to parse your query strings into Query objects any way you want. BTW: future questions about the java API will get more/better responses from the java-user list. -Hoss