Re: URL parameters combined with text param

2016-05-13 Thread Ahmet Arslan
Hi, In the first debug query response, special words are also queries so it is not working. Not sure edismax query parser recognizes _query_ field. But lucene query parser does. Try to switch to lucene query parser. Also if you can divide your query words into q and fq below will work: q=hospi

Re: URL parameters combined with text param

2016-05-12 Thread Bastien Latard - MDPI AG
Thanks both! I already tried "&debug=true", but it doesn't tell me that much...Or at least, I don't see any problem... Below are the responses... 1. /select?q=hospital AND_query_:"{!q.op=AND v=$a}"&fl=abstract,title&a=hospital Leapfrog&debug=true 0 280 hospital AND_query_:"{!q.op=AND

Re: URL parameters combined with text param

2016-05-12 Thread Erick Erickson
Try adding &debug=query to your query and look at the parsed results. This shows you exactly what Solr sees rather than what you think it should. Best, Erick On Thu, May 12, 2016 at 6:24 AM, Ahmet Arslan wrote: > Hi, > > Well, what happens > > q=hospital&fq={!lucene q.op=AND v=$a}&a=hospital Lea

Re: URL parameters combined with text param

2016-05-12 Thread Ahmet Arslan
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 wrote: Hi Ahmet, Thanks for your ans

Re: URL parameters combined with text param

2016-05-12 Thread Bastien Latard - MDPI AG
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/s

Re: URL parameters combined with text param

2016-05-11 Thread Ahmet Arslan
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 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

URL parameters combined with text param

2016-05-11 Thread Bastien Latard - MDPI AG
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 Lea