django-haystack / django-haystack/django-haystack

more_like_this on ElasticSearch

Open
#1,220 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.