lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EbSolutions EbSolutions <ebsolutions.s...@gmail.com>
Subject Re: Function query. Not in range
Date Mon, 05 Sep 2016 09:48:48 GMT
Hi Emir,

Working fine.

Thanks.

Regards,
NKI.


2016-09-05 10:39 GMT+02:00 Emir Arnautovic <emir.arnautovic@sematext.com>:

> Hi NKI,
>
> You'll have to negate range or negate - in case you expect only positive
> values than it would be {!frange l=100} and if you want to include negative
> results, you will have to use
>
> {!frange l=1}or(query($q1),query($q2))&q1={!frange u=0}sum(Field1,
> Ffield2)&q2={!frange l=100}sum(Field1, Ffield2)
>
> or
>
> {!frange l=1}not(query($q1))&q1={!frange l=0 u=100}sum(Field1, Ffield2)
>
>
> HTH,
> Emir
>
>
> On 04.09.2016 12:37, EbSolutions EbSolutions wrote:
>
>> Hi,
>> I'm using function query to query on range using sum function.
>> {!frange l=0 u=100} sum(Field1,Ffield2)
>>
>> this is working well. However, I'm not able to have the document not in
>> the
>> range. I've tested
>> NOT({!frange l=0 u=100} sum(Field1,Ffield2)) but it's not working.
>>
>> Do you have any idea to do it.
>>
>> Regards,
>> NKI.
>>
>>
> --
> Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> Solr & Elasticsearch Support * http://sematext.com/
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message