You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.
For this, you have the custom_score query, see tests for an example.
However, that works only in Elasticsearch 0.90.x -- it has been replaced by much more convenient and powerful function_score. Also, you should definitely use the new Elasticsearch Ruby client and the Rails integration.
Thank you for the answer. Yes, I guess a custom_query could do it.
As an alternative, would it be possible to create something like this with the Tire DSL:
And yes, I want to migrate to the new gems but I have some issues with them. Mainly it is the lack of multi model searching, which is essential for me. But I already have an issue for that here: elastic/elasticsearch-rails#203
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
I'm trying to boost some of my results based on how old they are.
I have a model called Article, which can be either an article or news. This is specified in the field
article_type
.Now I want to boost the results which is newer than 2 months AND have
article_type: 'news'
but I have no luck so far.Any ideas how I can do that with Tire's DSL?
The text was updated successfully, but these errors were encountered: