You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Lee Mallabone <le...@grantadesign.com> on 2002/01/23 13:35:46 UTC

mutiple wildcards

Hi,

I've been trying to use the wildcard query but am getting strange
results. Could anyone answer the following questions?

1) Will the wildcard query work as expected with a wildcard at the
beginning of a term?
2) Does wildcard query work as expected with more than one wildcard in
the term?

My reason for asking is that I've been getting some really strange
results doing both of the above, and I'm not sure if it's my code that's
wrong, or if I'm just using Lucene incorrectly.

Thanks in advance,

-- 
Lee Mallabone.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: mutiple wildcards

Posted by Ian Lea <ia...@blackwell.co.uk>.
> I've been trying to use the wildcard query but am getting strange
> results. Could anyone answer the following questions?
> 
> 1) Will the wildcard query work as expected with a wildcard at the
> beginning of a term?

No.  A wildcard query feeds into a prefix query and needs
a non-blank prefix.

> 2) Does wildcard query work as expected with more than one wildcard in
> the term?

No.


--
Ian.
ian.lea@blackwell.co.uk

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>