Documentation: http://lucene.apache.org/java/docs/queryparsersyntax.html

 

WildCard Searches 

    Lucene supports single and multiple character wildcard searches.

    To perform a single character wildcard search use the "?" symbol.

    To perform a multiple character wildcard search use the "*" symbol.

    ...

    Note: You cannot use a * or ? symbol as the first character of a
search.

 

I have a business requirement to search for terms with a wildcard at the
beginning "*ext". Is there a reason why this is not supported? Can I
easily modify the code to allow this feature or is it a major change? Is
there a some other way to do this? I could perform 26 queries a*ext
b*ext c*ext d*ext ... and rolling them up but I am guessing there should
be a better way.

 

  Thank you, Larry

 

    

 

Reply via email to