Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-8776

Support RankQuery in grouping

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.0
    • None
    • search
    • None

    Description

      Currently it is not possible to use RankQuery [1] and Grouping [2] together (see also [3]). In some situations Grouping can be replaced by Collapse and Expand Results [4] (that supports reranking), but i) collapse cannot guarantee that at least a minimum number of groups will be returned for a query, and ii) in the Solr Cloud setting you will have constraints on how to partition the documents among the shards.

      I'm going to start working on supporting RankQuery in grouping. I'll start attaching a patch with a test that fails because grouping does not support the rank query and then I'll try to fix the problem, starting from the non distributed setting (GroupingSearch).

      My feeling is that since grouping is mostly performed by Lucene, RankQuery should be refactored and moved (or partially moved) there.

      Any feedback is welcome.

      [1] https://cwiki.apache.org/confluence/display/solr/RankQuery+API
      [2] https://cwiki.apache.org/confluence/display/solr/Result+Grouping
      [3] http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201507.mbox/%3CCAHM-LpuvsPEsT-Sw63_8a6gt-wOr6dS_T_Nb2rOpe93e4+sTNQ@mail.gmail.com%3E
      [4] https://cwiki.apache.org/confluence/display/solr/Collapse+and+Expand+Results

      Attachments

        1. 0001-SOLR-8776-Support-RankQuery-in-grouping.patch
          4 kB
          Diego Ceccarelli
        2. 0001-SOLR-8776-Support-RankQuery-in-grouping.patch
          29 kB
          Diego Ceccarelli
        3. 0001-SOLR-8776-Support-RankQuery-in-grouping.patch
          30 kB
          Diego Ceccarelli
        4. 0001-SOLR-8776-Support-RankQuery-in-grouping.patch
          18 kB
          Diego Ceccarelli
        5. 0001-SOLR-8776-Support-RankQuery-in-grouping.patch
          21 kB
          Diego Ceccarelli

        Activity

          People

            Unassigned Unassigned
            diegoceccarelli Diego Ceccarelli
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m