[wdmmg-dev] Quoting parameters and search phrase with spaces
Friedrich Lindenberg
friedrich.lindenberg at okfn.org
Sat Apr 2 08:57:41 UTC 2011
Hi Carsten,
I think the problem is on our end. First off, this works quite nicely:
curl "http://localhost:8983/solr/wdmmg/select/?q=cofog1%3A%2203%22&version=2.2&start=0&rows=10&indent=on"
Still, I think the issue is in our schema.xml where we index * as
textgen instead of string: this way things get tokenized and "Region
A" would become "region, a". We should likely change that since we
don't need textgen anyway (it is covered by the "text" field which
receives a copy of all index contents).
- Friedrich
On Fri, Apr 1, 2011 at 6:19 PM, Carsten Senger <senger at rehfisch.de> wrote:
> Hi,
>
> I have a query where I want to limit the result based on the value of a
> solr.StrField. This is not tokenized and the value can contain spaces, like
> "Region A". I can query this with a search phrase that is quoted with
> double quotes, but it failes if the double quotes are url encoded.
>
> A working url is:
>
> fq=%2Bregion%3A"Region+A"
>
> But SearchHandler.raw() urlencodes all parameters passed in and queries
> with:
>
> fq=%2Bregion%3A%22Region+A%22
>
> which does not match. Is there a way do such a query with solrpy?
>
> Thanks,
>
> ..Carsten
>
> --
> You received this message because you are subscribed to the Google Groups
> "solrpy" group.
> To post to this group, send email to solrpy at googlegroups.com.
> To unsubscribe from this group, send email to
> solrpy+unsubscribe at googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/solrpy?hl=en.
>
>
More information about the openspending-dev
mailing list