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.ibrah...@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