Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

solr_group group.main #15

Closed
jonasanso opened this issue Jan 18, 2014 · 4 comments
Closed

solr_group group.main #15

jonasanso opened this issue Jan 18, 2014 · 4 comments
Labels
Milestone

Comments

@jonasanso
Copy link

group.main should be a boolean following the doc

  \item{group.main}{(logical) If true, the result of the
  last field grouping command is used as the main result
  list in the response, using group.format=simple}

And should return the the group field in the main result

solr_group(q=':', group.field='journal', rows=5, group.limit=3, group.sort='publication_date desc', group.format='simple', group.main='true', fl='publication_date', url=url, key=key)
numFound start publication_date
1 889099 0 2014-01-17T00:00:00Z
2 889099 0 2014-01-17T00:00:00Z
3 889099 0 2014-01-17T00:00:00Z
4 889099 0 2014-01-16T00:00:00Z
5 889099 0 2014-01-16T00:00:00Z

@jonasanso
Copy link
Author

Not sure now.

Maybe the response is correct but I don't understand it

> solr_group(q='*:*', group.field='journal', rows=5, group.limit=3, group.sort='publication_date desc', group.main='true' , raw = TRUE, fl='publication_date', url=url, key=key)
[1] "{\"response\":{\"numFound\":889099,\"start\":0,\"docs\":[{\"publication_date\":\"2014-01-17T00:00:00Z\"},{\"publication_date\":\"2014-01-17T00:00:00Z\"},{\"publication_date\":\"2014-01-17T00:00:00Z\"},{\"publication_date\":\"2014-01-16T00:00:00Z\"},{\"publication_date\":\"2014-01-16T00:00:00Z\"}]}}\n"
attr(,"class")
[1] "sr_group"
attr(,"wt")
[1] "json"

@sckott
Copy link
Contributor

sckott commented Jan 20, 2014

Any thoughts on this @jonasanso ? If okay, I will close this issue

@jonasanso
Copy link
Author

No idea Sckott. I close the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants