Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-17225

Sleep function query to sleep on execution rather than parsing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.5
    • None
    • function query, Tests

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            abenedetti Alessandro Benedetti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: