A couple of options - param substitution -

    fq=maths:${maths_v} AND science:${science_v}

        where &maths_v=25 and &science_v=30

And one I like better because it’s a more precisely defined query:

   fq=({!term f=maths v=$maths_v}) AND {!term f=science v=$science_v}


—
Erik Hatcher, Senior Solutions Architect
http://www.lucidworks.com <http://www.lucidworks.com/>



> On Apr 27, 2016, at 6:47 AM, kavurupavan <kavurupa...@gmail.com> wrote:
> 
> Solr url :
> 
> Example:
> 
> http://localhost:8983/solr/searching/select?q=*:*&fq=maths:25 AND science:
> 30
> 
> These 25 and 30 i need to pass dynamically values. How can I pass them as
> part of a Solr URL? 
> Please help me. Thanks in advance.
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-can-i-pass-in-solr-dynamic-values-to-a-particular-field-tp4273107.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to