lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <>
Subject AW: wildcards in fields?
Date Thu, 25 Sep 2003 11:16:06 GMT
> Von: []
> I search in a field called "url". does 
> return hits while 
> does not. So I tried url:* but this does 
> even throw a 
> ParseException.
> What am I doing wrong?
Wildcards at the beginning of a term are not supported. Lucene use the first
characters to speedup the search for matching terms (== words). So the query
parser doesn't accept you query. (Afterwise lucene has to examine all terms
and this would be very slow).
You may use a second field to store the url as invered string, e.g.
invurl: moc.halb.www and search for invurl:moc.halb.* instead.
Checkout the archives for both mailing lists (
and IRC there are other proposals discussed
serveral time ago to workaround this limit.
Wolf-Dietrich Materna
empolis GmbH -  arvato knowledge management 

phone: +49 - 30 - 34 35 34 95 
<<>> <<>>

View raw message