Re: Java client - setTimeout vs actionGet(timeout)

2014-11-30 Thread Itamar Syn-Hershko
IIRC the Java API doesn't have any default client-side timeout for search
requests, its an opt-in feature

--

Itamar Syn-Hershko
http://code972.com | @synhershko 
Freelance Developer & Consultant
Author of RavenDB in Action 

On Sun, Nov 30, 2014 at 11:37 PM, Nikolas Everett  wrote:

> Default for server side timeout is none and I don't know client side
> timeout. I imagine it is a long time.
> On Nov 30, 2014 1:46 PM, "Ron Sher"  wrote:
>
>> Thanks for the info.
>>
>> Do you know what are the defaults?
>>
>> On Sunday, November 30, 2014 5:53:49 PM UTC+2, Nikolas Everett wrote:
>>>
>>> Timeouts are server side and best effort. I believe action get(timeout)
>>> is client side.
>>>
>>> I use the http client but use both and set the server side timeout to
>>> lower than the client side timeout.
>>>
>>> The server side timeout should return partial results if possible.
>>> On Nov 30, 2014 10:41 AM, "Ron Sher"  wrote:
>>>
 Hi all,

 I want to make sure the search query doesn't exceed some limit.

 I've seen the option to use a setTimeout vs actionGet(timeout).

 Can someone please explain the difference?

 Also, I've read somewhere that there's a default connection timeout.
 Can that be used instead. If so, how?

 Thanks for your help,

 Ron

 --
 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 elasticsearc...@googlegroups.com.
 To view this discussion on the web visit https://groups.google.com/d/
 msgid/elasticsearch/0f39e669-bd98-4fc3-afbc-df9e3d9b1f52%
 40googlegroups.com
 
 .
 For more options, visit https://groups.google.com/d/optout.

>>>  --
>> 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 elasticsearch+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/660f86bb-0f96-431c-acb5-aa4f5971578a%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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 elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0uKbdDubBAS-9AhwW4G2gQbJHs-fAg_qkhv0WcRn1K%2BQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZtfnhCZJUrKv7fDc-hO%3D3Dpgv8xjUK3up3cCiaY60SmCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Java client - setTimeout vs actionGet(timeout)

2014-11-30 Thread Nikolas Everett
Default for server side timeout is none and I don't know client side
timeout. I imagine it is a long time.
On Nov 30, 2014 1:46 PM, "Ron Sher"  wrote:

> Thanks for the info.
>
> Do you know what are the defaults?
>
> On Sunday, November 30, 2014 5:53:49 PM UTC+2, Nikolas Everett wrote:
>>
>> Timeouts are server side and best effort. I believe action get(timeout)
>> is client side.
>>
>> I use the http client but use both and set the server side timeout to
>> lower than the client side timeout.
>>
>> The server side timeout should return partial results if possible.
>> On Nov 30, 2014 10:41 AM, "Ron Sher"  wrote:
>>
>>> Hi all,
>>>
>>> I want to make sure the search query doesn't exceed some limit.
>>>
>>> I've seen the option to use a setTimeout vs actionGet(timeout).
>>>
>>> Can someone please explain the difference?
>>>
>>> Also, I've read somewhere that there's a default connection timeout. Can
>>> that be used instead. If so, how?
>>>
>>> Thanks for your help,
>>>
>>> Ron
>>>
>>> --
>>> 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 elasticsearc...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/elasticsearch/0f39e669-bd98-4fc3-afbc-df9e3d9b1f52%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
> 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 elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/660f86bb-0f96-431c-acb5-aa4f5971578a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPmjWd0uKbdDubBAS-9AhwW4G2gQbJHs-fAg_qkhv0WcRn1K%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Java client - setTimeout vs actionGet(timeout)

2014-11-30 Thread Ron Sher
Thanks for the info.

Do you know what are the defaults?

On Sunday, November 30, 2014 5:53:49 PM UTC+2, Nikolas Everett wrote:
>
> Timeouts are server side and best effort. I believe action get(timeout) is 
> client side. 
>
> I use the http client but use both and set the server side timeout to 
> lower than the client side timeout. 
>
> The server side timeout should return partial results if possible. 
> On Nov 30, 2014 10:41 AM, "Ron Sher" > 
> wrote:
>
>> Hi all,
>>
>> I want to make sure the search query doesn't exceed some limit.
>>
>> I've seen the option to use a setTimeout vs actionGet(timeout).
>>
>> Can someone please explain the difference?
>>
>> Also, I've read somewhere that there's a default connection timeout. Can 
>> that be used instead. If so, how?
>>
>> Thanks for your help,
>>
>> Ron
>>
>> -- 
>> 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 elasticsearc...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/0f39e669-bd98-4fc3-afbc-df9e3d9b1f52%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/660f86bb-0f96-431c-acb5-aa4f5971578a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Java client - setTimeout vs actionGet(timeout)

2014-11-30 Thread Nikolas Everett
Timeouts are server side and best effort. I believe action get(timeout) is
client side.

I use the http client but use both and set the server side timeout to lower
than the client side timeout.

The server side timeout should return partial results if possible.
On Nov 30, 2014 10:41 AM, "Ron Sher"  wrote:

> Hi all,
>
> I want to make sure the search query doesn't exceed some limit.
>
> I've seen the option to use a setTimeout vs actionGet(timeout).
>
> Can someone please explain the difference?
>
> Also, I've read somewhere that there's a default connection timeout. Can
> that be used instead. If so, how?
>
> Thanks for your help,
>
> Ron
>
> --
> 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 elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/0f39e669-bd98-4fc3-afbc-df9e3d9b1f52%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1boDs7Racvx9kJDc4wUiQ0mhTbH5XOtD88h%2BJ2fA%2B8RQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.