django-haystack / django-haystack/django-haystack
more_like_this on ElasticSearch
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.7k
- Forks
- 1.3k
- Avg merge
- 3h 18m
- Merged PRs (30d)
- 3
Description
Hi
I am using django haystack with elastic search. I have implemented the more_like_this query, unfortunately the results seem a bit strange. It seems like it is using the entire text file of the model to do a more_like_this query. Can I suggest the fields that should be used, my guess is that this would make the results more expected.
reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-mlt-query.html
Please let me know if I am missing something.
Thanks!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Elasticsearch more_like_this query documentation and locate the existing django-haystack integration that invokes it. Define how callers would select the fields used for matching and verify that results no longer use the entire model text; the issue names no files or tests, so the current entry point and validation approach must be identified first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, python
- Domain
- backend, search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100