Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 36913 invoked from network); 6 Aug 2009 23:09:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Aug 2009 23:09:52 -0000 Received: (qmail 69436 invoked by uid 500); 6 Aug 2009 23:09:57 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 69352 invoked by uid 500); 6 Aug 2009 23:09:57 -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 69342 invoked by uid 99); 6 Aug 2009 23:09:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 23:09:57 +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 phil123@gmail.com designates 209.85.210.173 as permitted sender) Received: from [209.85.210.173] (HELO mail-yx0-f173.google.com) (209.85.210.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Aug 2009 23:09:48 +0000 Received: by yxe3 with SMTP id 3so1650462yxe.29 for ; Thu, 06 Aug 2009 16:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=0HhimgOS/qYM9H+sjesQ24LxiSSktPmshi0vqlZLQ6U=; b=rlaLwSIkAI25MfMYmRV0gWyXrDzXdQzgsnjDOXgi4T+WLt001VwrVs2b/4w4Uf0JS/ T7v0MHaNOHhdu+5qtuZJV4TZTt4IxuuEMBgQ6u1odf2JKQxqa9SjUyUMNvCGPDGaPsoz 0f3rC04cvDFvMidCN8Ml1iTbr2b9F4vIiYzWs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=t6Dazbx7lwmkz+Utlcb9YyeayB1fkZxpyQsj3lC1KhwCbLNeoFAA1m8V9v7T10oa5x kLkY8R8hYuhph9W7GL/Mmm/RgVJVPB3rEIZjE8EVhbjbcOEHkgTNgah6bgaGp2rvmCxL gop2wjd9lgTEhBj6Nzgmx4CnxvdMqF7C9T/TE= MIME-Version: 1.0 Received: by 10.231.35.205 with SMTP id q13mr486821ibd.17.1249600167377; Thu, 06 Aug 2009 16:09:27 -0700 (PDT) In-Reply-To: <20090806160347.OP4RU.42535.imail@eastrmwml33> References: <20090806160347.OP4RU.42535.imail@eastrmwml33> Date: Thu, 6 Aug 2009 16:09:27 -0700 Message-ID: <9cafbc680908061609s61e5e52ake4723d1e0fb29425@mail.gmail.com> Subject: Re: Why does this search succeed with web app, but not Luke? From: Phil Whelan To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Jim, Are you using the same Analyzer for indexing and searching? xxxx.yyy will be seem as a HOSTNAME by StandardAnalyzer and will keep it as one term, whereas another indexer might split this into 2 terms. This should not matter either way as long as you are using the same Analyzer for both indexing and searching. I would expect this to pass unless you are using NOT_ANALYZED, or the WhitespaceAnalyzer, or something else that would not split on "/". path:xxxx.yyy In Luke, do you see 2 terms "xxxx" and "yyy", or just "xxxx.yyy", or something else? Thanks, Phil On Thu, Aug 6, 2009 at 1:03 PM, wrote: > Hi, > > In my indexer app (based on the IndexFiles.java demo), I am adding the "p= ath" field: > > =A0 =A0doc.add(new Field("path", f.getPath(), Field.Store.YES, Field.Inde= x.ANALYZED)); > > Per Luke, the full path (e.g., "c:\....\xxxx.yyy") gets parsed, and one o= f the terms (again, per Luke) is "xxxx", i.e., the actual file name, but wi= thout the extension. > > Then, when I search with Luke for "path:xxxx", that succeeds, as expected= , and when I search with Luke for "path:xxxx.yyy", that fails, as expected. > > But, if I search using the demo web app, for "path:xxxx.yyy", it succeeds= . > > Since the Luke search for "path:xxxx.yyy" fails, I don't understand why t= he web app search for "path:xxxx.yyy" would succeed? > > Thanks, > Jim --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org