lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Bell <billnb...@gmail.com>
Subject Re: Payload with Local Params?
Date Sun, 07 Dec 2014 07:53:58 GMT
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 <yonik@heliosearch.com> wrote:

> 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
>



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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message