Yonik,

How do I do something like:

 <str name="hospital_quality1">product(1,sum(0,query({!lucene
type=payloadQueryParser v=$hqval1})))</str>

hgval1=cc:1


But I want:

num=1&hgval1=cc:$num

Thanks again.



On Sat, Oct 11, 2014 at 9:21 AM, Yonik Seeley <yo...@heliosearch.com> wrote:

> On Sat, Oct 11, 2014 at 12:22 AM, William Bell <billnb...@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
>



-- 
Bill Bell
billnb...@gmail.com
cell 720-256-8076

Reply via email to