lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@heliosearch.com>
Subject Re: Payload with Local Params?
Date Sat, 11 Oct 2014 15:21:09 GMT
On Sat, Oct 11, 2014 at 12:22 AM, William Bell <billnbell@gmail.com> wrote:
> I want to call:
>
> http://localhost:8983/solr/collection1/query?defType=myqp&yy=electronics&q=payloads:$yy
>
> How do I pass $yy to the parser and have it use "electronics" instead
> of the literal $yy?

Solr only does parameter substitution for local param values... so for
a term query above of payload:$yy
you want q={!term f=payload v=$yy}

Heliosearch can do full request substitution, so you can do things like
q=payload:${yy}
or
q=price:[ ${low} TO ${high} ]
http://heliosearch.org/solr-query-parameter-substitution/

-Yonik
http://heliosearch.org - native code faceting, facet functions,
sub-facets, off-heap data

Mime
View raw message