Tommaso Teofili created OAK-5705:
------------------------------------

             Summary: Negative cost calculation for native Solr query
                 Key: OAK-5705
                 URL: https://issues.apache.org/jira/browse/OAK-5705
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: solr
    Affects Versions: 1.6.0
            Reporter: Tommaso Teofili
            Assignee: Tommaso Teofili
             Fix For: 1.7.0


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
{noformat}
org.apache.jackrabbit.oak.query.QueryImpl cost below 0 for 
solr[/oak:index/solrIndex] is -2.7670116110564326E18
{noformat}

A sample query causing this :
{noformat}
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'
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to