Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
9.5
-
None
Description
Currently, there is a sleep(x,y) function query available in Apache Solr.
This function query sleeps for <x> ms and then return <y> as a value.
Currently the sleep happens on query parsing, rather than execution.
This can cause a problem in tests when used for example in Learning To Rank where a function query can be used as a SolrFeature.
In Learning To Rank the feature extraction is separated from the feature parsing (the weight generation).
The extraction happens per document while the parsing happens once.
So when using a sleep feature you expect the sleep to happens whenever you extract the value of the feature rather than at parsing time.