Attributes of SearchRequest

Can someone tell me the usage of these searchrequest attributes

queryHint

extraSource

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Hey there,

the extraSource is used as an additional input for a query. For example an
HTTP request contains of a request body (which defines the search request
and is used as source), but also of some parameters in the URL parameters,
which are then defined as extra source. If you want to check the source,
check out RestSearchAction. The extra source is 'merged' with the original
source before querying.

Where have you spotted the query hint? I am not sure which one you mean.
There is a search_query_hint in the more liks this feature, but I guess you
are asking for something else...

--Alex

On Tue, Apr 2, 2013 at 7:22 AM, Chetana ambha.career@gmail.com wrote:

Can someone tell me the usage of these searchrequest attributes

queryHint

extraSource

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

queryHint was the old name of the 'preference' parameter in
SearchRequest. It can be set to control the access to the shards.
Default is random access, other values are 'local' for accessing local
shards first, or 'primary' to access primary shards only, or a custom value.

Also, queryHint was an unused parameter in the count action of 0.20,
which has been removed in 0.90. I assume it was intended with the same
semantics as in SearchRequest.

Jörg

Am 02.04.2013 10:07, schrieb Alexander Reelsen:

Where have you spotted the query hint? I am not sure which one you
mean. There is a search_query_hint in the more liks this feature, but
I guess you are asking for something else...

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.