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 sunnyfr <jo...@gmail.com> on 2008/12/10 12:42:49 UTC
How can i look for "tom & jerry"
Hi,
When I look for this expression it does stop the search at the &, taking
that for a parameter i guess.
Thanks for your help
--
View this message in context: http://www.nabble.com/How-can-i-look-for-%22tom---jerry%22-tp20933665p20933665.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: How can i look for "tom & jerry"
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Wed, Dec 10, 2008 at 5:12 PM, sunnyfr <jo...@gmail.com> wrote:
>
> When I look for this expression it does stop the search at the &, taking
> that for a parameter i guess.
>
You will need to URL encode the query parameter before you make the request.
URLEncoder.encode("tom & jerry", "UTF-8");
If you are using SolrJ, it will automatically take care of this.
--
Regards,
Shalin Shekhar Mangar.