Hi!

How can I restore the behavior of the old
WildcardQuery under 2.1?
I badly need 'cat???' to match 'cat' again just like
in the older versions.

I could modify my istance of lucene by removing those
"new" lines, but I don't want to maintain a custom
lucene package.

Please help!

Tim




Source: LUCENE-306
>
********************************************************************
> --- WildcardTermEnum.org      2004-05-11
11:42:10.000000000 -0400
> +++ WildcardTermEnum.java     2004-11-08
14:35:14.823610500 -0500
> @@ -132,6 +132,10 @@
>              }
>              else
>              {
> +           //to prevent "cat" matches "ca??"
> +           if(wildchar == WILDCARD_CHAR){
> +             return false;
> +           }       
>                // Look at the next character
>                wildcardSearchPos++;
>              }
>
**********************************************************************



 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to