You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by dabboo <ag...@sapient.com> on 2009/03/03 14:13:52 UTC

Phrase Query

Hi,

I want to search "tes*t", where "*" is not considering as wildcard but as
character. So, I am expecting the results which have tes*t as string as one
of their field value.

Please suggest how to achieve it.

Thanks,
Amit Garg
-- 
View this message in context: http://www.nabble.com/Phrase-Query-tp22308387p22308387.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Phrase Query

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Mar 3, 2009, at 8:13 AM, dabboo wrote:
> I want to search "tes*t", where "*" is not considering as wildcard  
> but as
> character. So, I am expecting the results which have tes*t as string  
> as one
> of their field value.
>
> Please suggest how to achieve it.

This requires escaping the special characters with a backslash \.    
The query sent to Solr should would be q=tes\*t

Though this has nothing to do with the subject "Phrase Query".

	Erik