Hello,
I haven't tested this like you did, but from looking at the query
parser (QueryParser.jj file in the Lucene distribution)
it seems that only a single character is required before '*' or '?':
...
| <WILDTERM: <_TERM_START_CHAR>
(<_TERM_CHAR> | ( [ "*", "?" ] ))* >
...
_TERM_START_CHAR is defined as:
[ "a"-"z", "A"-"Z", "_", "\u0080"-"\uFFFE" ]
and as you can see from the first definition above this character can
be followed by either zero or more _TERM_CHAR or "*" or "?".
This also answers your question about using an asterisk as the very
first character in the query.
It would be great if Doug or Brian Goetz could confirm or dispute this,
so that I can add it to the Lucene FAQ at jGuru.com.
Otis
--- Aruna Raghavan <[EMAIL PROTECTED]> wrote:
> Hi,
> From some testing that I have done it appears that there is a limit
> of 3
> characters before the wild card for wildcard queries. In other
words,
> if the
> word is dogleash and I looking by using do* it returns wrong
results
> (usually only a asubset) where as if I use dog*, I get correct
> results.
>
> Also, wildcard at the begining of the keyword does not seem to be
> supported.
> (*ogleash)
> Can some one confirm this? Is this documented anywhere?
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>