Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 1715 invoked from network); 16 Oct 2006 06:00:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Oct 2006 06:00:19 -0000 Received: (qmail 91335 invoked by uid 500); 16 Oct 2006 06:00:11 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 91302 invoked by uid 500); 16 Oct 2006 06:00:11 -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 91291 invoked by uid 99); 16 Oct 2006 06:00:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Oct 2006 23:00:11 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mekin.m@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Oct 2006 23:00:10 -0700 Received: by nf-out-0910.google.com with SMTP id b2so2061235nfe for ; Sun, 15 Oct 2006 22:59:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=T9w4bOHA1dZesz3Fxm0kfVHh9RhRhT3sVFBGzSZZJ4vxr7uGBHB9jvVcErXIJHSJDStiattI2euxnQrGosr5F6oL7uUcVT/Y31KUsPPWpoNspWt+DU4TaXPcMbx3viHGQG0ZgWZj936Xo1Ikx79TvVCR5Mt/xxjEVQqe82UsnRc= Received: by 10.49.55.13 with SMTP id h13mr11547399nfk; Sun, 15 Oct 2006 22:59:49 -0700 (PDT) Received: by 10.49.37.16 with HTTP; Sun, 15 Oct 2006 22:59:49 -0700 (PDT) Message-ID: <865c77680610152259w28f3d15cs574c29282cadea27@mail.gmail.com> Date: Mon, 16 Oct 2006 11:29:49 +0530 From: Mek To: java-user@lucene.apache.org Subject: constructing smaller phrase queries given a multi-word query MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Has anyone dealt with the problem of constructing sub-queries given a multi-word query ? Here is an example to illustrate what I mean: user queries for -> A B C D right now I change that query to "A B C D" A B C D to give phrase matches higher weightage. What might happen though, is that the user is looking for a document where "A B" in Field1 & "C D" in Field2. So I should ideally be constructing the query as : "A B C D"^20 "A B"^10 "C D"^10 "B C D"^15 "A B C"^15 A B C D Has someone solved this problem, are there other ways to handle this problem ? Thanks, mek. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org