Why is `_script` filters commented out in the source code? Possible to add support for scripts?
fabioxgn opened this issue · 2 comments
fabioxgn commented
I'm trying to write a query that compares 2 dates, and my understanding is that I need to use a script filter something like:
Model.search(
'*',
where: { status: 'something', _script: "return doc['a'].value.getMillis() > doc['b'].value.getMillis()" },
)
This works and generates a valid filter query if I uncommented the code from here:
searchkick/lib/searchkick/query.rb
Line 911 in 74fd743
Any reason for this code to be commented out?
fabioxgn commented
ankane commented
Added support in the commit above.