From java-user-return-45151-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Wed Feb 24 21:45:54 2010 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 44180 invoked from network); 24 Feb 2010 21:45:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 21:45:54 -0000 Received: (qmail 6152 invoked by uid 500); 24 Feb 2010 21:45:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 6091 invoked by uid 500); 24 Feb 2010 21:45:52 -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 6081 invoked by uid 99); 24 Feb 2010 21:45:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 21:45:52 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of digydigy@gmail.com designates 209.85.219.217 as permitted sender) Received: from [209.85.219.217] (HELO mail-ew0-f217.google.com) (209.85.219.217) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 21:45:42 +0000 Received: by ewy9 with SMTP id 9so189322ewy.11 for ; Wed, 24 Feb 2010 13:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=mvfzqyTJuwTGj7mlI6drjTfWWrQ899kDnKbqLSBUsDo=; b=KWBOkK670DFcYia1lDnzqQOG8Kb/QkhwEVEqCm7OYFTvYPQjoT0m9EWj2iuRJ1Pz/n IvSPkPdwMA5FswIpDsTKo6z0XGsCB0D75bsTYQRmSS46EHY90dqEVGha94FeOT24e+LH HRRPbwp3CvNKFX8tZTOVlIa84091mm09OC9/s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=YXW88/AFjjoZaZRdcEZuV7Gjpc2XXF+FU/jHX1ZNw+5ssQRe3b9gutnXG3Lv3rwxXP UGZ+/Mp7qTNnBZKq07Pr7tuU9EBgWuiZ0eYOeu7fFHsbwOZ0pKJQPgQtwO2yAOhQF52C +ncfeGiRFiHuJW4RHORX/iHoyD4rmxN0nS4Vk= Received: by 10.213.25.78 with SMTP id y14mr758380ebb.26.1267047921799; Wed, 24 Feb 2010 13:45:21 -0800 (PST) Received: from NEWPC ([81.213.206.230]) by mx.google.com with ESMTPS id 16sm1126428ewy.7.2010.02.24.13.45.20 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Feb 2010 13:45:21 -0800 (PST) From: "Digy" To: References: <002052E02A48964A8035D9B6E8A1647DAF94CB@0015-its-exmb01.us.saic.com> In-Reply-To: <002052E02A48964A8035D9B6E8A1647DAF94CB@0015-its-exmb01.us.saic.com> Subject: RE: Phrase Search and NOT_ANALYZED Date: Wed, 24 Feb 2010 23:45:14 +0200 Message-ID: <005201cab59a$a706c430$f5144c90$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acq1kx0A5NbyPhZsTd26oERipdC5hgAB1sXg Content-Language: tr X-Virus-Checked: Checked by ClamAV on apache.org Since it is not analyzed, your text is stored as a single term in the index [something in the index]. But the query name:"something in the index" is translated as : find 4 consecutive terms which have values "something", "in","the" and "index" respectively. or if stop words are removed find 2 consecutive terms which have values "something" and "index" You should either index it ANALYZED or use TermQuery while searching. DIGY -----Original Message----- From: Murdoch, Paul [mailto:PAUL.B.MURDOCH@saic.com] Sent: Wednesday, February 24, 2010 10:51 PM To: java-user@lucene.apache.org Subject: Phrase Search and NOT_ANALYZED Hi, I'm indexing a field using the StandardAnalyzer 2.9. field = new Field(fieldName, fieldValue, Field.Store.YES, Field.Index.NOT_ANALYZED); Let's say fieldName is "name" and fieldValue is "something in the index". When I perform the query... name:"something in the index" ... I don't get a hit. I'm using the StandardAnalyzer for searching. I've tested this with Luke and it doesn't work there either. What am I missing? Thanks, Paul --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org