Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5705

Negative cost calculation for native Solr query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.13
    • 1.4.15, 1.7.0, 1.6.2, 1.8.0
    • solr
    • None

    Description

      It seems sometimes the cost for the Solr index can become negative.
      This has been observed specifically with native queries, as witnessed by log lines like

      org.apache.jackrabbit.oak.query.QueryImpl cost below 0 for solr[/oak:index/solrIndex] is -2.7670116110564326E18
      

      A sample query causing this :

      select * from [nt:base] where native('solr','select?q=searchKeywords:"foo"^20 text:"foo"^1 searchExcerpt:"foo"^8 subheadline:"foo"^3 headline:"foo"^5 searchHeadline:"foo"^10 &q.op=OR'
      

      Attachments

        Activity

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: