Solr
  1. Solr
  2. SOLR-236 Field collapsing
  3. SOLR-2123

Search Grouping: Group by query (like facet.query)

    Details

    • Type: Sub-task Sub-task
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    1. SOLR-2123.patch
      15 kB
      Yonik Seeley

      Activity

      Hide
      Yonik Seeley added a comment -

      OK, so I'm thinking to treat this just like faceting... group.query=foo:bar will give you the top docs that match that query.

      This is the current format for group.field:

        "grouped":{
          "popularity":{
            "matches":19,
            "groups":[{
                "groupValue":6,
                "doclist":{"numFound":5,"start":0,"docs":[
      

      And this is what I propose for group.query (which basically just drops the "groups" list and goes straight to a doclist.

        "grouped":{
          "foo:bar":{
             "matches":19,
             "doclist":{"numFound":5,"start":0,"docs":[
      
      Show
      Yonik Seeley added a comment - OK, so I'm thinking to treat this just like faceting... group.query=foo:bar will give you the top docs that match that query. This is the current format for group.field: "grouped" :{ "popularity" :{ "matches" :19, "groups" :[{ "groupValue" :6, "doclist" :{ "numFound" :5, "start" :0, "docs" :[ And this is what I propose for group.query (which basically just drops the "groups" list and goes straight to a doclist. "grouped" :{ "foo:bar" :{ "matches" :19, "doclist" :{ "numFound" :5, "start" :0, "docs" :[
      Hide
      Yonik Seeley added a comment -

      Here's the patch for filter.query
      The number of docs returned in that group is still governed by group.limit.
      In the tests, I also changed the separator between path and expected json from : to ==, which will lead to a lot fewer false hits, and allowed be to easily use something with a : in the path.

      Show
      Yonik Seeley added a comment - Here's the patch for filter.query The number of docs returned in that group is still governed by group.limit. In the tests, I also changed the separator between path and expected json from : to ==, which will lead to a lot fewer false hits, and allowed be to easily use something with a : in the path.
      Hide
      Yonik Seeley added a comment -

      committed.

      Show
      Yonik Seeley added a comment - committed.

        People

        • Assignee:
          Unassigned
          Reporter:
          Yonik Seeley
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Development