2
votes

By the address: http://myhost.com:8983/solr/#/collection1/query

I can not find the possibility for inputing GROUP queries, like:

group=true&group.field=geohash1_st

Where is fields for that type of query?

That is what I have: enter image description here

P.S: I have solr 4 version.

P.S2: I can type my query into URL of my browser, but it is not convenient, because the query is long! So the question is to make that using prepared input fields...

2

2 Answers

3
votes

The place you'd put those is labelled "Raw Query Parameters" ... but it's not in your screenshot. This probably means that you're not using a new enough version of Solr 4. I can confirm that this is in the admin UI as of version 4.2.1, and it's definitely in the latest version, 4.6.0.

You disappeared from #solr before I could answer there.

screenshot

0
votes

I faced same issue. I have done like this :

We need to send parameter on : Raw Query Parameters

stats.facet=Status&stats.field=ItemPrice&stats=on&wt=json

stats.facet=Status - It means group by Status.

stats.field=ItemPrice - It means Sum,min,max,sd.. macro aggregation will be done on ItemPrice. stats=on It enable the stats

enter image description here

Result will contain Stats like below :

"stats":{
    "stats_fields":{
      "ItemPrice":{
        "min":1.0,
        "max":1399.99,
        "count":8,
        "missing":0,
        "sum":3147.9399999999987,
        "sumOfSquares":3063146.2605999997,
        "mean":393.49249999999984,
        "stddev":510.5257066635194,
        "facets":{
          "Status":{
            "6":{
              "min":1.0,
              "max":1399.99,
              "count":8,
              "missing":0,
              "sum":3147.9399999999987,
              "sumOfSquares":3063146.2605999997,
              "mean":393.49249999999984,
              "stddev":510.5257066635194}}}}}}}