Hi,

The only way to implement it today would be on client side. However, I
think this would be an interesting feature given that while Elasticsearch
is fast at retrieving the top hits, going deeper in the result set can use
lots of resources (both CPU-wise and memory-wise).

Can you open an issue on Github to suggest that this feature be implemented?


On Wed, Apr 9, 2014 at 11:51 AM, Fin Sekun <[email protected]> wrote:

> Hi,
>
> I am securing an ES installation and try to restrict the number of
> returned documents by configuration (for all ES queries). It's possible to
> use filtered aliases (
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html),
> but I cannot find a working syntax with a "size" filter. The "limit" filter
> isn't suitable, see e.g.
> https://stackoverflow.com/questions/21444623/elasticsearch-limit-filter-ambiguityfor
>  the difference.
>
> Is it possible to create an index alias with a "size" restriction?
> If not: How do you restrict the max. number of results ES-wide to prevent
> DoS?
>
> Thank you, rgds
> Fin
>
> --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/317c7822-d6ce-43be-9645-eaccda6f08ff%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/317c7822-d6ce-43be-9645-eaccda6f08ff%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Adrien Grand

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6zqmMvXbNEepzd39XpcK%3DGiDAq_A1Vp0frmiLe%2BbvNNQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to