Wolfgang is right, but you can also enable the leading wildcard in the QueryParser, I believe, plus you can index reversed tokens and stick to the trailing wildcards.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- From: Wolfgang Täger <[EMAIL PROTECTED]> To: general@lucene.apache.org Sent: Monday, January 28, 2008 2:43:06 AM Subject: Re: Searching sub string Hi Moran, In case that - you don't need other Lucene functions or ranking - performance is critical - your database does not fit into RAM you may have a look at (compressed) suffix arrays, which can perfectly handle left and right truncation. Best regards, Wolfgang mortic44 <[EMAIL PROTECTED]> 25-01-2008 16:27 Please respond to general@lucene.apache.org To general@lucene.apache.org cc Subject Searching sub string Hi, 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. Is there any other solution ? Thanks, Moran -- View this message in context: http://www.nabble.com/Searching-sub-string-tp15089424p15089424.html Sent from the Lucene - General mailing list archive at Nabble.com.