Is SetOverride-like behavior (sphinx) supported?


(brandonlee) #1

See http://www.sphinxsearch.com/docs/current.html#api-func-setoverride


(Lukáš Vlček) #2

Hi,

I am not familiar with Sphinx but doesn't the ES custom score scripting
sound interesting?
http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/custom_score_query/

http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/custom_score_query/
Regards,
Lukas

On Sat, Dec 4, 2010 at 8:27 PM, brandonlee mluggy@gmail.com wrote:

See http://www.sphinxsearch.com/docs/current.html#api-func-setoverride


(brandonlee) #3

It does sounds interesting but will require me to store all of the
values I want to override with inside ES, whereas Sphinx lets you load
those values dynamically and externally...

On Dec 4, 9:50 pm, Lukáš Vlček lukas.vl...@gmail.com wrote:

Hi,

I am not familiar with Sphinx but doesn't the ES custom score scripting
sound interesting?http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/cu...

http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/cu...
Regards,
Lukas

On Sat, Dec 4, 2010 at 8:27 PM, brandonlee mlu...@gmail.com wrote:

Seehttp://www.sphinxsearch.com/docs/current.html#api-func-setoverride


(Shay Banon) #4

Note that the script itself is driven by you, the user, so you can have whatever values you want in that formula. For example, assume the value you want to inject to the scoring is 3.14, then you can have a custom score function script that looks like this:

_score * 3.14

Though, in such a case, it make more sense (performance wise), to provide that value as a parameter (so the compiled script will be reused). This is explained on the same custom_score query page, under the Script parameters.
On Saturday, December 4, 2010 at 10:50 PM, brandonlee wrote:

It does sounds interesting but will require me to store all of the
values I want to override with inside ES, whereas Sphinx lets you load
those values dynamically and externally...

On Dec 4, 9:50 pm, Lukáš Vlček lukas.vl...@gmail.com wrote:

Hi,

I am not familiar with Sphinx but doesn't the ES custom score scripting
sound interesting?http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/cu...

Regards,
Lukas

On Sat, Dec 4, 2010 at 8:27 PM, brandonlee wrote:

Seehttp://www.sphinxsearch.com/docs/current.html#api-func-setoverride
...@gmail.com>//www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/cu...>


(system) #5