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'