No timeout for CountRequestBuilder?


(Lukáš Vlček) #1

Hi,

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

Regards,
Lukas


(Shay Banon) #2

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


(Lukáš Vlček) #3

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


(Shay Banon) #4

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


(Lukáš Vlček) #5

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


(system) #6