Yes. Default is just one document. I thought that deleting is scary so I
wanted to protect the user.

But I can agree that this is too wimpy. I can change the default to all of
you want to.
Den 2. juli 2013 09:14 skrev "Olof Nilsson" <notifications@github.com>
følgende:

> In
> admin-service/src/main/java/com/findwise/hydra/admin/rest/ConfigurationController.java:
>
> > @@ -169,6 +169,15 @@ public StageGroup getStageGroup(@PathVariable(value = "stageGroup") String stage
> >  			@RequestBody String changes) {
> >  		return documentService.updateDocuments(jsonQuery, limit, changes);
> >  	}
> > +
> > +        @ResponseBody
> > +	@RequestMapping(method = RequestMethod.GET, value = "/documents/discard")
> > +	public Map<String, Object> discardDocuments(
> > +			@RequestParam(required = true, value = "q") String jsonQuery,
> > +			@RequestParam(required = false, defaultValue = "1", value = "limit") int limit,
>
> Does this default limit mean that only one document gets discarded when
> only the query is supplied? I would expect all documents by default.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/Findwise/Hydra/pull/224/files#r4978964>
> .
>