You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example: If I pass the following query to Solr http://localhost:8983/solr/#/collection1/query?q=*:*&q.op=OR&indent=true&fq=publicationStatus:%22Published%22&fq=dvObjectType:%22datasets%22&stats=true&stats.field=resource.design.population.obtainedSampleSize I receive the following stats for the "obtained sample size" metadata field in addition to the query results:
This feature could be implemented relatively easily by allowing the search API user to pass a stats.field parameter into Solr, and passing the output back.
What kind of user is the feature intended for?
API users
What inspired the request?
In our custom UI, we have a range input for searches on numeric fields. For the input, we would like to know the min and max of the fields to use as the default min and max of the input.
Example: numeric field "obtained sample size"
What existing behavior do you want changed?
/
Any brand new behavior do you want to add to Dataverse?
Any open or closed issues related to this feature request?
Didn't find any
Are you thinking about creating a pull request for this feature?
Yes
The text was updated successfully, but these errors were encountered:
Overview of the Feature Request
We are interested in making statistics about metadata fields available through the search API.
Solr supports this via the
stats
andstats.field
query parameters for indexed fields of numeric, string and date types: https://solr.apache.org/guide/6_6/the-stats-component.htmlBy default, Solr sends the following stats:
Example: If I pass the following query to Solr
http://localhost:8983/solr/#/collection1/query?q=*:*&q.op=OR&indent=true&fq=publicationStatus:%22Published%22&fq=dvObjectType:%22datasets%22&stats=true&stats.field=resource.design.population.obtainedSampleSize
I receive the following stats for the "obtained sample size" metadata field in addition to the query results:This feature could be implemented relatively easily by allowing the search API user to pass a
stats.field
parameter into Solr, and passing the output back.What kind of user is the feature intended for?
API users
What inspired the request?
In our custom UI, we have a range input for searches on numeric fields. For the input, we would like to know the min and max of the fields to use as the default min and max of the input.
Example: numeric field "obtained sample size"
What existing behavior do you want changed?
/
Any brand new behavior do you want to add to Dataverse?
Any open or closed issues related to this feature request?
Didn't find any
Are you thinking about creating a pull request for this feature?
Yes
The text was updated successfully, but these errors were encountered: