lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: How do you query a sentence composed of multiple words in a description field?
Date Thu, 22 Jan 2015 23:43:14 GMT
On 1/22/2015 4:31 PM, Carl Roberts wrote:
> Hi Walter,
>
> If I try this from my Mac shell:
>
>     curl
> http://localhost:8983/solr/nvd-rss/select?wt=json&indent=true&q=summary:"Oracle
> Fusion"
>
> I don't get a response.

Quotes are a special character to the shell on your mac, and get removed
from what the curl command sees.  You'll need to put the whole thing in
quotes (so that characters like & are not interpreted by the shell) and
then escape the quotes that you want to actually be handled by curl:

curl
"http://localhost:8983/solr/nvd-rss/select?wt=json&indent=true&q=summary:\"Oracle
Fusion\""

Thanks,
Shawn


Mime
View raw message