Re: Use function in condition

2016-09-05 Thread nabil Kouici
Hi Alexandre, Yes you are right. I miss q parameter. It's giving the same result now. Thank you for your help. Regards,Nabil. De : Alexandre Rafalovitch À : solr-user Envoyé le : Lundi 5 septembre 2016 11h11 Objet : Re: Use function in condition I don't see any 'q

Re: Use function in condition

2016-09-05 Thread Alexandre Rafalovitch
tp://localhost:8983/solr/COL1/select?indent=on&fq={!frange%20l=1}or(query($q1),query($q2))&q1=F1:0732695731&q2=F2:1040167165&rows=0&wt=json > > > Regards,Nabil. > > De : Emir Arnautovic > À : solr-user@lucene.apache.org > Envoyé le : Lundi 5 septembre 2

Re: Use function in condition

2016-09-05 Thread nabil Kouici
lt http://localhost:8983/solr/COL1/select?indent=on&fq={!frange%20l=1}or(query($q1),query($q2))&q1=F1:0732695731&q2=F2:1040167165&rows=0&wt=json Regards,Nabil. De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Lundi 5 septembre 2016 10h48 Objet 

Re: Use function in condition

2016-09-05 Thread Emir Arnautovic
k you. Regards,Nabil. De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Lundi 5 septembre 2016 10h30 Objet : Re: Use function in condition Hi Nabil, It should work. I've just tested on gettingstarted collection (sample that comes with Solr) and this query return

Re: Use function in condition

2016-09-05 Thread nabil Kouici
lucene.apache.org" >  Envoyé le : Vendredi 2 septembre 2016 13h45 >  Objet : Re: Use function in condition >    > Hi Emir, > Thank you for your response. > Yes your request is working but only if it's function queries. > If you mix function query with normal quer

Re: Use function in condition

2016-09-05 Thread Emir Arnautovic
eptembre 2016 13h45 Objet : Re: Use function in condition Hi Emir, Thank you for your response. Yes your request is working but only if it's function queries. If you mix function query with normal query, this will not work. For example: fq={!frange l=1}and(query($sub1),or(query($sub2),qu

Re: Use function in condition

2016-09-05 Thread nabil Kouici
Hi All, Any feedback please. Regards,Nabil. De : nabil Kouici À : "solr-user@lucene.apache.org" Envoyé le : Vendredi 2 septembre 2016 13h45 Objet : Re: Use function in condition Hi Emir, Thank you for your response. Yes your request is working but only if it's funct

Re: Use function in condition

2016-09-02 Thread nabil Kouici
m(F3,F4)&sub3={!frange l=3000}sum(F5,F6) Regards,Nabil. De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Lundi 29 août 2016 14h06 Objet : Re: Use function in condition Hi Nabil, Can you try following: fq={!frange l=1}and(query($sub1),or(query($sub2),query($sub3

Re: Use function in condition

2016-08-29 Thread Emir Arnautovic
syntaxe. Regards,Nabil. De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Jeudi 25 août 2016 16h51 Objet : Re: Use function in condition Hi Nabil, You have limited set functions, but there are logical functions: or, and, not and you have query function so can d

Re: Use function in condition

2016-08-29 Thread nabil Kouici
translate these conditions to solr syntaxe. Regards,Nabil.  De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Jeudi 25 août 2016 16h51 Objet : Re: Use function in condition Hi Nabil, You have limited set functions, but there are logical functions: or, and, not an

Re: Use function in condition

2016-08-25 Thread Emir Arnautovic
know that I can use multiple fq but the problem is I can have complexe filter like (cond1 OR cond2 AND cond3) Could you please help. Regards,Nabil. De : Emir Arnautovic À : solr-user@lucene.apache.org Envoyé le : Mercredi 17 août 2016 17h08 Objet : Re: Use function in condition

Re: Use function in condition

2016-08-25 Thread nabil Kouici
utovic À : solr-user@lucene.apache.org Envoyé le : Mercredi 17 août 2016 17h08 Objet : Re: Use function in condition Hi Nabil, You can use frange queries, e.g. you can use fq={!frange l=100}sum(field1,field2) to filter doc with sum greater than 100. Regards, Emir On 17.08.2016 16:26, na

Re: Use function in condition

2016-08-17 Thread Emir Arnautovic
Hi Nabil, You can use frange queries, e.g. you can use fq={!frange l=100}sum(field1,field2) to filter doc with sum greater than 100. Regards, Emir On 17.08.2016 16:26, nabil Kouici wrote: Hi, Is it possible to use functions (function query https://cwiki.apache.org/confluence/display/solr/F

Use function in condition

2016-08-17 Thread nabil Kouici
Hi, Is it possible to use functions (function query https://cwiki.apache.org/confluence/display/solr/Function+Queries) in q or fq parameters to build a complex search expression.  For exemple, take only documents that sum(field1,field2)> 100. Another exemple:  if(test,value1,value2):vallue3 Regar