Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8674

UnsupportedOperationException due to call to o.a.l.q.f.FunctionValues.floatVal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 9.0
    • None
    • core/query/scoring
    • New

    Description

      Requesting the following URL causes Solr to return an HTTP 500 error response:

      http://localhost:8983/solr/films/select?fq={!frange%20l=10%20u=100}or_version_s,directed_by
      

      The error response seems to be caused by the following uncaught exception:

      java.lang.UnsupportedOperationException
      at org.apache.lucene.queries.function.FunctionValues.floatVal(FunctionValues.java:47)
      at org.apache.lucene.queries.function.FunctionValues$3.matches(FunctionValues.java:188)
      at org.apache.lucene.queries.function.ValueSourceScorer$1.matches(ValueSourceScorer.java:53)
      at org.apache.lucene.search.TwoPhaseIterator$TwoPhaseIteratorAsDocIdSetIterator.doNext(TwoPhaseIterator.java:89)
      at org.apache.lucene.search.TwoPhaseIterator$TwoPhaseIteratorAsDocIdSetIterator.nextDoc(TwoPhaseIterator.java:77)
      at org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:261)
      at org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:214)
      at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:652)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:443)
      at org.apache.solr.search.DocSetUtil.createDocSetGeneric(DocSetUtil.java:151)
      at org.apache.solr.search.DocSetUtil.createDocSet(DocSetUtil.java:140)
      at org.apache.solr.search.SolrIndexSearcher.getDocSetNC(SolrIndexSearcher.java:1177)
      at org.apache.solr.search.SolrIndexSearcher.getPositiveDocSet(SolrIndexSearcher.java:817)
      at org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(SolrIndexSearcher.java:1025)
      at org.apache.solr.search.SolrIndexSearcher.getDocListNC(SolrIndexSearcher.java:1540)
      at org.apache.solr.search.SolrIndexSearcher.getDocListC(SolrIndexSearcher.java:1420)
      at org.apache.solr.search.SolrIndexSearcher.search(SolrIndexSearcher.java:567)
      at org.apache.solr.handler.component.QueryComponent.doProcessUngroupedSearch(QueryComponent.java:1434)
      

      Sadly, I can't understand the logic of this code well enough to give any insights.

      To set up an environment to reproduce this bug, follow the description in the ‘Environment’ field.

      We found this issue and ~70 more like this using Diffblue Microservices Testing. Find more information on this fuzz testing campaign.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jkloos Johannes Kloos
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: