Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@apache.org Received: (qmail 67427 invoked from network); 24 Oct 2002 14:37:18 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 24 Oct 2002 14:37:18 -0000 Received: (qmail 11722 invoked by uid 97); 24 Oct 2002 14:38:03 -0000 Delivered-To: qmlist-jakarta-archive-lucene-user@jakarta.apache.org Received: (qmail 11661 invoked by uid 97); 24 Oct 2002 14:38:02 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 11649 invoked by uid 98); 24 Oct 2002 14:38:01 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <20021024143707.20281.qmail@web12708.mail.yahoo.com> Date: Thu, 24 Oct 2002 07:37:07 -0700 (PDT) From: Otis Gospodnetic Subject: RE: Error when trying to match file path To: Lucene Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The Analyzer is stripping your \ characters. Query Parser doesn't do that... Otis --- Rob Outar wrote: > Some more information, with the following: > > this.query = > QueryParser.parse(file.getAbsolutePath(),"path",this.analyzer); > System.out.println(this.query.toString("path")); > I got: > F:"onesaf dev block b pair dev unittestdatafiles tools > unitcomposer.xml" > > So it looks like the Query Parser is stripping out all the "\", and > doing > something with the F:\, would anyone happen to know why this is > happening? > Do I need to use a different query to get the infromation I need? > > Thanks, > > Rob > > -----Original Message----- > From: Rob Outar [mailto:routar@ideorlando.org] > Sent: Wednesday, October 23, 2002 5:48 PM > To: lucene-user@jakarta.apache.org > Subject: Error when trying to match file path > > > Hi all, > > I am indexing the filepath with the below: > > Document doc = new Document(); > doc.add(Field.UnIndexed("path", f.getAbsolutePath())); > > I then try to run the following after building the index: > > this.query = > QueryParser.parse(file.getAbsolutePath(),"path",this.analyzer); > Hits hits = this.searcher.search(this.query); > > It returns zero hits?!? > > What am I doing wrong? > > Any help would be appreciated. > > Thanks, > > Rob > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > __________________________________________________ Do you Yahoo!? Y! Web Hosting - Let the expert host your web site http://webhosting.yahoo.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: