Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 2539 invoked from network); 12 Nov 2003 15:46:48 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Nov 2003 15:46:48 -0000 Received: (qmail 11150 invoked by uid 500); 12 Nov 2003 15:46:35 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 11098 invoked by uid 500); 12 Nov 2003 15:46:35 -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 10874 invoked from network); 12 Nov 2003 15:46:33 -0000 Received: from unknown (HELO relay1.clb.oleane.net) (213.56.31.21) by daedalus.apache.org with SMTP; 12 Nov 2003 15:46:33 -0000 Received: from keyword.fr ([217.167.201.1]) by relay1.clb.oleane.net with ESMTP id hACFkZ38007022 for ; Wed, 12 Nov 2003 16:46:35 +0100 Received: from 223.223.223.151 by keyword.fr with SMTP; Wed, 12 Nov 2003 16:51:42 +0100 Received: by mercure.keyword.fr with Internet Mail Service (5.5.2653.19) id ; Wed, 12 Nov 2003 16:43:38 +0100 Message-ID: <0AF7AA04641C6746926E99D22580E9B006750B@mercure.keyword.fr> From: Pascal Nadal To: "'lucene-user@jakarta.apache.org'" Subject: Re: Re: Wildcard search and HOST tokens Date: Wed, 12 Nov 2003 16:43:35 +0100 Importance: low X-Priority: 5 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3A933.BB966DD0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3A933.BB966DD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable when I do a query.toString(), it prints exactly my = query. example: title:FE.MENU* gives title:FE.MENU* FE.MENU* when I search = in the default field and the field 'title'. the HostFilter I wrote (that tokenizes again HOST tokens) works = wonderfully. PS: thanks Erik -----Message d'origine----- De : Erik Hatcher [mailto:erik@ehatchersolutions.com] Envoy=E9 : mercredi 12 novembre 2003 12:43 =C0 : Lucene Users List Objet : Re: Wildcard search and HOST tokens =20 On Wednesday, November 12, 2003, at 05:55 AM, Pascal Nadal wrote: > My lucene indexes contain fields with values like this = www.xxx.yyy.zzz > which are treated as HOST tokens. > My problem is the following : search results never contain documents=20 > with > such fields when doing a wildcard query or a fuzzy query. Only=20 > searches on > full field values work. > > example queries: www* www.* www.xxx* www?xxx?yyy www.yyy.y~ or just=20 > yyy > > I'm using Lucene 1.2 and the StandardAnalyzer. It seems that the '.'=20 > is the > problem. > > Is it a bug ? What does query.toString("") return? This generally has=20 a lot of clues on what happened in QueryParser. Erik ------_=_NextPart_001_01C3A933.BB966DD0--