Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to pass document id to More Like This #24

Open
ghost opened this issue May 25, 2013 · 5 comments
Open

Add ability to pass document id to More Like This #24

ghost opened this issue May 25, 2013 · 5 comments
Labels

Comments

@ghost
Copy link

ghost commented May 25, 2013

Per: http://www.elasticsearch.org/guide/reference/api/more-like-this/

@karmi
Copy link
Owner

karmi commented Jun 3, 2013

@tmlee
Copy link

tmlee commented Jul 21, 2013

Correct me if i'm wrong https://github.com/karmi/tire-contrib/blob/master/lib/tire/queries/more_like_this.rb is doing http://www.elasticsearch.org/guide/reference/query-dsl/mlt-query/

It looks like http://www.elasticsearch.org/guide/reference/api/more-like-this/ uses a direct API call but underneath, it's calling the mlt-query.

Wonder if there's any way we can accomplish the same behavior using the existing search query, or we'll have to implement a direct API call. I might find some time to draft one out maybe.

@karmi
Copy link
Owner

karmi commented Jul 21, 2013

@tmlee The "more like this document" API is indeed a bit different. You should achieve the same with more_like_this query, just pass the string and the list of fields.

@mereghost
Copy link
Contributor

Oh, crap I just saw that. =/

I intend to implement that as I need it on a project, but schedule is a bit... tight right now. I'll see if I can dedicate some time for this.

@karmi
Copy link
Owner

karmi commented Jul 27, 2013

@mereghost No worries .)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants