Function Score Query in elasticsearch-py


(Abhishek Kasina) #1

Is there a way to use the function score queryhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.htmlfeature in elastic search through their python
library http://elasticsearch-py.readthedocs.org/en/latest/api.html? Has
anyone successfully implemented it?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/74418f9f-12e5-4320-afed-6cf632a84ab0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Honza Král) #2

Hi,

yes there is, the python library is very low level so once you construct
the query as a dict you can use it:

es = Elasticsearch()
es.search(body={"query": {"function_score": {...}}})

should work just fine

On Wed, Dec 4, 2013 at 11:00 AM, Abhishek Kasina
kasina.abhishek@gmail.comwrote:

Is there a way to use the function score queryhttp://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.htmlfeature in elastic search through their python
library http://elasticsearch-py.readthedocs.org/en/latest/api.html? Has
anyone successfully implemented it?

--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/74418f9f-12e5-4320-afed-6cf632a84ab0%40googlegroups.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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CABfdDirjYWTAyCfu_AywVgCH7jXSDjdgy-v6y%2B9vzkS9deXyfg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3