marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

Facet Endpoint: Query Required #85

Open sastafford opened 12 years ago

sastafford commented 12 years ago

Small issue with the facet endpoint. Currently a stringQuery OR a structuredQuery is a required parameter. This is not stated in the documentation and I had to dig through the code to figure that out. Could we set the default behavior of retrieving a facet to be the first 10 results?

In other words, I want to just call this: /facet/title without any parameters and return the first 10 results by default.