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
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
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
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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo