Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-5743 Faceting with BlockJoin support
  3. SOLR-8644

ArrayIndexOutOfBoundsException in BlockJoinFieldFacetAccumulator

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.2, 7.0
    • faceting
    • None

    Description

      Not sure I can provide any minimal example, but possibly it's easier to fix than describe.

      http://localhost:8983/solr/core0/bjqfacet?q={!parent+which%3Dtype_s:parent+v%3D$cq}&fq={!term+f%3DBRAND_s+tag%3Drbrand}Nike&facet=true&cq=type_s:child+AND+SIZE_s:XL&facet.field={!ex%3Drbrand}BRAND_s&child.facet.field=disp_clr
      
      java.lang.ArrayIndexOutOfBoundsException: 0
              at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator$SortedIntsAggDocIterator.nextDoc(BlockJoinFieldFacetAccumulator.java:117)
              at org.apache.solr.search.join.BlockJoinFieldFacetAccumulator.updateCountsWithMatchedBlock(BlockJoinFieldFacetAccumulator.java:143)
              at org.apache.solr.search.join.BlockJoinFacetCollector.countFacets(BlockJoinFacetCollector.java:119)
              at org.apache.solr.search.join.BlockJoinFacetCollector.incrementFacets(BlockJoinFacetCollector.java:106)
              at org.apache.solr.search.join.BlockJoinFacetCollector.collect(BlockJoinFacetCollector.java:87)
              at org.apache.solr.search.SolrIndexSearcher.getDocSet(SolrIndexSearcher.java:1161)
      

      Again it only shows up in BlockJoinFacetComponent, not in BlockJoinDocSetFacetComponent

      The error is at bottom of result:

      <lst name="error"><str name="trace">java.lang.ArrayIndexOutOfBoundsException
      </str><int name="code">500</int></lst>
      

      Attachments

        1. SOLR-8644.patch
          1 kB
          Dr Oleg Savrasov
        2. SOLR-8644.patch
          2 kB
          Mikhail Khludnev

        Issue Links

          Activity

            People

              mkhl Mikhail Khludnev
              ilyak Ilya Kasnacheev
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: