lucenenet-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas <>
Subject Re: Leading wildcard in Lucene.Net 1.9?
Date Thu, 13 Jul 2006 10:17:56 GMT
As far as I know, PrefixQuery only allows trailing wildcards.
If you intend to do so the solution I've adopted is to index the term in
reverse order on another field.
if you mean to search  *def and you want to match abcdef  just create 2
regularField where you index a term in its natural order that is to say
reverseField where you index a term in the refverse order that is to
say fedcba
then you'll have to transform the query regularField:*def  in
Concerning *abc*, maybe you can investigate RegExpQuery...

On 7/13/06, Nathan Haywood <> wrote:
> Our search instance needs to be able to search for a query as a
> substring of a term... For example, hex (as *hex*). I looked on the
> Lucene board and saw that there was a simple change to make to support
> this in the JAVA code, but the JAVA token syntax seems to have vanished
> into a helper class in the port.
> Has anyone enables *abc* queries in their system? Any pointers, types,
> code snippets?
> Thank you,
> Nathan Haywood
> Senior Software Engineer
> CorMine, LLC

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