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

remove BlockJoinFacetComponent; was: UnsupportedOperationException in FakeScorer

    XMLWordPrintableJSON

Details

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

    Description

      TODO

      Let's remove BlockJoinFacetComponent because it doesn't work with BooleanScorer aka term-at-time. It's advised to use BlockJoinDocSetFacetComponent instead.

      Original Description

      query like this:

      http://localhost:8983/solr/core0/bjqfacet?q=*:*%20{!parent+which%3Dtype_s:parent}type_s:child&facet=true&child.facet.field=SIZE_s
      

      throws:

      java.lang.UnsupportedOperationException
              at org.apache.lucene.search.FakeScorer.getChildren(FakeScorer.java:60)
              at org.apache.solr.search.join.BlockJoinFacetCollector.getToParentScorer(BlockJoinFacetCollector.java:66)
              at org.apache.solr.search.join.BlockJoinFacetCollector.setScorer(BlockJoinFacetCollector.java:55)
              at org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:319)
              at org.apache.lucene.search.BulkScorer.score(BulkScorer.java:39)
              at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:821)
              at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:535)
              at org.apache.solr.search.SolrIndexSearcher.buildAndRunCollectorChain(SolrIndexSearcher.java:207)
      

      Not that this query makes much sence, but don't expect naked exception.

      This only happens when using BlockJoinFacetComponent - BlockJoinDocSetFacetComponent seems to do OK.

      Attachments

        1. SOLR-8643.patch
          22 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: