lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Rafalovitch <arafa...@gmail.com>
Subject Re: Solr query with more than one field
Date Thu, 01 Jun 2017 18:13:38 GMT
Function queries:
https://cwiki.apache.org/confluence/display/solr/Function+Queries
The function would be sub
Then you want its result mapped to a fq. could probably be as simple
as fq={!func}sub(value,cost).

Because the value of the function will be treated as a relevance value
and relevance value of 0 (and less?) will cause the record to be
filtered out.

Regards,
   Alex.
----
http://www.solr-start.com/ - Resources for Solr users, new and experienced


On 1 June 2017 at 13:46, Mikhail Ibraheem
<mikhail.ibraheem@yahoo.com.invalid> wrote:
> Hi,I have 2 fields "cost" and "value" at my records. I want to get all documents that
have "value" greater than "cost". Something likeq=value:[cost TO *]
> Please advise.
> Thanks

Mime
View raw message