It isn’t that complicated. You need to understand URL escaping for working with
any REST client. As soon as you need to read the logs, you’ll need to
understand it.
The double quote becomes %22 and the colon becomes %3A. In a parameter, the
spaces can be +, but in a path they need to be %20.
Thanks Erick,
I think I am going to start using the browser for testing...:) Perhaps
also a REST client for the Mac.
Regards,
Joe
On 1/22/15, 6:56 PM, Erick Erickson wrote:
Have you considered using the admin/query form? Lots of escaping is done
there for you. Once you have the form of the
Hi Walter,
If I try this from my Mac shell:
curl
http://localhost:8983/solr/nvd-rss/select?wt=jsonindent=trueq=summary:Oracle
Fusion
I don't get a response.
If I try this, it works!:
curl
http://localhost:8983/solr/nvd-rss/select?wt=jsonindent=trueq=name:Oracle;
So I think the
It appears that you are actually intending to query a phrase rather than a
complete sentence. The former are easy - just enclose the phrase in quotes.
Fielded query applies to a single term, a quoted phrase, or a parenthesized
sub-query, so in your query it applied only to that first term, so
Have you considered using the admin/query form? Lots of escaping is done
there for you. Once you have the form of the query down and know what to
expect, it's probably easier to enter escaping hell with curl and the
like
And what is your schema definition for the field in question? the
Your query is this:
summary:Oracle Fusion Middleware
That searches for “Oracle” in the summary field and “Fusion” and “Middleware”
in whatever your default field is.
You want:
summary:”Oracle Fusion Middleware”
wunder
Walter Underwood
wun...@wunderwood.org
http://observer.wunderwood.org/
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=jsonindent=trueq=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
Thanks Shawn - I tried this but it does not work. I don't even get a
response from curl when I try that format and when I look at the logging
on the console for Jetty I don't see anything new - it seems that the
request is not even making it to the server.
On 1/22/15, 6:43 PM, Shawn Heisey
Hi,
How do you query a sentence composed of multiple words in a description
field?
I want to search for sentence Oracle Fusion Middleware but when I try
the following search query in curl, I get nothing:
curl http://localhost:8983/solr/nvd-rss/select?q=summary:Oracle Fusion