Exception encountered when using expressions module with very large expressions.

2019-01-29 Thread Michal Makarewicz
Hi, We have a scenario where we use Javascript expression compiler to dynamically load ranking model passed as query parameter. This approach works well enough for small models, but when we tried loading large models using expressions module we hit JVM limit on maximum method size (64kb) and faile

Re: How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-29 Thread MarcoR
Thanks for the clarification Mikhail, That is my understanding as well. Made some progress with help from your responses. All the best M -- Sent from: http://lucene.472066.n3.nabble.com/Lucene-Java-Users-f532864.html - To

Re: How can I use FunctionScoreQuery to replace CustomScoreQuery?

2019-01-29 Thread Mikhail Khludnev
I proposed to implement DoubleValuesSource with the custom logic, which gives a scoring. But one can not search by DoubleValuesSource one needs a query for this, since a query provides a "selectivity" choosing certain docs, and rejecting others.And a way to get the query is to wrap a base query