Hi, Well, what happens
q=hospital&fq={!lucene q.op=AND v=$a}&a=hospital Leapfrog OR q=+_query_:"{!lucene q.op=AND v='hospital'}" +_query_:"{!lucene q.op=AND v=$a}"&a=hospital Leapfrog Ahmet On Thursday, May 12, 2016 3:28 PM, Bastien Latard - MDPI AG <lat...@mdpi.com.INVALID> wrote: Hi Ahmet, Thanks for your answer, but this doesn't work on my local index. q1 returns 2 results. http://localhost:8983/solr/my_core/select?q=hospital AND _query_:"{!q.op=AND%20v=$a}"&fl=abstract,title&a=hospital Leapfrog ==> returns 254 results (the same as http://localhost:8983/solr/my_core/select?q=hospital ) Kind regards, Bastien On 11/05/2016 16:06, Ahmet Arslan wrote: > Hi Bastien, > > Please use magic _query_ field, q=hospital AND _query_:"{!q.op=AND v=$a}" > > ahmet > > > On Wednesday, May 11, 2016 2:35 PM, Latard - MDPI AG > <lat...@mdpi.com.INVALID> wrote: > Hi Everybody, > > Is there a way to pass only some of the data by reference and some > others in the q param? > > e.g.: > > q1. http://localhost:8983/solr/my_core/select?{!q.op=OR > v=$a}&fl=abstract,title&a=hospital Leapfrog&debug=true > > q1a. http://localhost:8983/solr/my_core/select?q=hospital AND > Leapfrog&fl=abstract,title > > q2. http://localhost:8983/solr/my_core/select?q=hospital AND > ({!q.op=AND v=$a})&fl=abstract,title&a=hospital Leapfrog > > q1 & q1a are returning the same results, but q2 is somehow not > analyzing the $a parameter properly... > > Am I missing anything? > > Kind regards, > Bastien Latard > Web engineer Kind regards, Bastien Latard Web engineer -- MDPI AG Postfach, CH-4005 Basel, Switzerland Office: Klybeckstrasse 64, CH-4057 Tel. +41 61 683 77 35 Fax: +41 61 302 89 18 E-mail: lat...@mdpi.com http://www.mdpi.com/