lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Nadal <>
Subject Re: Re: Wildcard search and HOST tokens
Date Wed, 12 Nov 2003 15:43:35 GMT
when I do a query.toString(<my default field>), 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 []

Envoyé : mercredi 12 novembre 2003 12:43

À : Lucene Users List

Objet : Re: Wildcard search and HOST tokens


On Wednesday, November 12, 2003, at 05:55 AM, Pascal Nadal wrote:

> My lucene indexes contain fields with values like this

> which are treated as HOST tokens.

> My problem is the following : search results never contain documents 

> with

> such fields when doing a wildcard query or a fuzzy query. Only 

> searches on

> full field values work.


> example queries: www* www.** www?xxx?yyy www.yyy.y~ or just 

> yyy


> I'm using Lucene 1.2 and the StandardAnalyzer. It seems that the '.' 

> is the

> problem.


> Is it a bug ?

What does query.toString("<default field>") return? This generally has 

a lot of clues on what happened in QueryParser.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message