Alessandro Benedetti created SOLR-17225:
-------------------------------------------

             Summary: Sleep function query to sleep on execution rather than 
parsing
                 Key: SOLR-17225
                 URL: https://issues.apache.org/jira/browse/SOLR-17225
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: function query, Tests
    Affects Versions: 9.5.0
            Reporter: Alessandro Benedetti


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.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to