Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 93173 invoked from network); 9 Oct 2006 06:51:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 06:51:50 -0000 Received: (qmail 56283 invoked by uid 500); 9 Oct 2006 06:51:45 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 56263 invoked by uid 500); 9 Oct 2006 06:51:44 -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 56252 invoked by uid 99); 9 Oct 2006 06:51:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Oct 2006 23:51:44 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ismail@gmail.com designates 64.233.182.185 as permitted sender) Received: from [64.233.182.185] (HELO nf-out-0910.google.com) (64.233.182.185) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Oct 2006 23:51:42 -0700 Received: by nf-out-0910.google.com with SMTP id c2so1420723nfe for ; Sun, 08 Oct 2006 23:51:21 -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; b=ATM+2yQ0pi5mBSeg3m+veiOl+F4hT/XPxcC2qgtL3MXG3TYproqtM/qSGCdwHG5vlU2w7iJY2ysAISs/U5BDyrGZhbbTqWhQeLMNLpRygpgeYnX1yadk2yWvSPDfD4/mcbmIRrIhSSh3/2rpXGd0sB8Tw8iPT3p0I80sEaepzx4= Received: by 10.48.254.10 with SMTP id b10mr780760nfi; Sun, 08 Oct 2006 11:59:21 -0700 (PDT) Received: by 10.49.81.18 with HTTP; Sun, 8 Oct 2006 11:59:21 -0700 (PDT) Message-ID: <1f07f6920610081159j275f8eb6v79959063d4be96c8@mail.gmail.com> Date: Sun, 8 Oct 2006 14:59:21 -0400 From: "Ismail Siddiqui" To: java-user@lucene.apache.org Subject: TermQuery and PhraseQuery..problem with word with space MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_189053_17343237.1160333961304" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_189053_17343237.1160333961304 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All I am trying to index a field which has more than one word with space e.g. "My Word" i am indexng it UN_TOKENIZED .. but when i use TermQuery to query "My Word" its not yielding any result.. if I index it TOKENIZED and use phrase query.. then use phrase query then it yields result on all 3 combination "My" , "Word", "MY Word" but I actually want to show result only on "My Word"... Is term qurey limited to one word? i mean if we index a word with space and index it UN_TOKENIZED.. shouldnt TermQuery yeild result to "My Word". Ismail ------=_Part_189053_17343237.1160333961304--