lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <Wolf-Dietrich.Mate...@empolis.com>
Subject AW: wildcards in fields?
Date Thu, 25 Sep 2003 11:16:06 GMT
Hello,
> Von: lucene@nitwit.de [mailto:lucene@nitwit.de]
> 
> I search in a field called "url". url:www.blah.com does 
> return hits while 
> url:blah.com does not. So I tried url:*blah.com 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 (lucene-user@jakarta.apache.org
and lucene-dev@jakarta.apache.org). IRC there are other proposals discussed
serveral time ago to workaround this limit.
Regards,
	Wolf-Dietrich
-- 
Wolf-Dietrich Materna
Development
 
empolis GmbH -  arvato knowledge management 

phone: +49 - 30 - 34 35 34 95 
<<mailto:Wolf-Dietrich.Materna@empolis.com>> <<http://www.empolis.com>>


Mime
View raw message