lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ~$alpha` <>
Subject Solr Expression Slow
Date Mon, 12 Feb 2018 15:32:42 GMT
In the below Solr query I am sorting based on the below expression.

> sum(if(and(tf(CRITERIA1_FILTER,Y),if(tf(PARTNER_CRITERIA1,N),0,1)),1,0),if(and(tf(CRITERIA2_FILTER,Y),if(tf(PARTNER_CRITERIA2,1),0,1)),1,0))
> asc

I have mentioned PARTNER_CRITERIA1 and PARTNER_CRITERIA2 in the expression.
I have similar10 expression like this.

I want to remove expression as it is slow,
Is it better to use custom sorting for such case and if yes, can someone
help how to do so?

Sent from:

View raw message