lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <list2...@danielnaber.de>
Subject Re: Searching sub string
Date Fri, 25 Jan 2008 19:36:52 GMT
On Freitag, 25. Januar 2008, mortic44 wrote:

> I'd like to perform a substring search (query like *foo*).
> As you better know, it is not possible to use * as the first character.

It is, at last in recent versions of Lucene Java, see 
QueryParser.setAllowLeadingWildcard(). An alternative might be to produce 
an n-gram index.

Regards
 Daniel

-- 
http://www.danielnaber.de

Mime
View raw message