No timeout for CountRequestBuilder?

Hi,

is it not possible to set timeout for CountRequestBuilder ?
May be it does not make sense, just asking.

Regards,
Lukas

No, there isn't an option. Can be added, but you can also just use search_type set to count, which will have similar behavior (with additional features, like being able to do facets).

On Friday, July 8, 2011 at 5:04 PM, Lukáš Vlček wrote:

Hi,

is it not possible to set timeout for CountRequestBuilder ?
May be it does not make sense, just asking.

Regards,
Lukas

In my case I need only the count (there are no facets in my query) and I
assume CountRequestBuilder should be more efficient then
SearchRequestBuilder with setSearchType(SearchType.COUNT) - is my assumption
correct?

And I think it would make sense to allow timeout for CountRequestBuilder
though I can live without it for now (should I open a ticket?).

Regards,
Lukas

On Fri, Jul 8, 2011 at 10:55 PM, Shay Banon shay.banon@elasticsearch.comwrote:

No, there isn't an option. Can be added, but you can also just use
search_type set to count, which will have similar behavior (with additional
features, like being able to do facets).

On Friday, July 8, 2011 at 5:04 PM, Lukáš Vlček wrote:

Hi,

is it not possible to set timeout for CountRequestBuilder ?
May be it does not make sense, just asking.

Regards,
Lukas

On Saturday, July 9, 2011 at 12:08 AM, Lukáš Vlček wrote:

In my case I need only the count (there are no facets in my query) and I assume CountRequestBuilder should be more efficient then SearchRequestBuilder with setSearchType(SearchType.COUNT) - is my assumption correct?

It is a bit more efficient, not by much.

And I think it would make sense to allow timeout for CountRequestBuilder though I can live without it for now (should I open a ticket?).

Regards,
Lukas

On Fri, Jul 8, 2011 at 10:55 PM, Shay Banon <shay.banon@elasticsearch.com (mailto:shay.banon@elasticsearch.com)> wrote:

No, there isn't an option. Can be added, but you can also just use search_type set to count, which will have similar behavior (with additional features, like being able to do facets).

On Friday, July 8, 2011 at 5:04 PM, Lukáš Vlček wrote:

Hi,

is it not possible to set timeout for CountRequestBuilder ?
May be it does not make sense, just asking.

Regards,
Lukas

I just opened a ticket for this:

On Fri, Jul 8, 2011 at 11:53 PM, Shay Banon shay.banon@elasticsearch.comwrote:

On Saturday, July 9, 2011 at 12:08 AM, Lukáš Vlček wrote:

In my case I need only the count (there are no facets in my query) and I
assume CountRequestBuilder should be more efficient then
SearchRequestBuilder with setSearchType(SearchType.COUNT) - is my assumption
correct?

It is a bit more efficient, not by much.

And I think it would make sense to allow timeout for CountRequestBuilder
though I can live without it for now (should I open a ticket?).

Regards,
Lukas

On Fri, Jul 8, 2011 at 10:55 PM, Shay Banon shay.banon@elasticsearch.comwrote:

No, there isn't an option. Can be added, but you can also just use
search_type set to count, which will have similar behavior (with additional
features, like being able to do facets).

On Friday, July 8, 2011 at 5:04 PM, Lukáš Vlček wrote:

Hi,

is it not possible to set timeout for CountRequestBuilder ?
May be it does not make sense, just asking.

Regards,
Lukas