django-haystack / django-haystack/django-haystack

Haystack SearchQuerySet won't filter on a CharField with one character (Whoosh / django-haystack)

Open
#1,022 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs review
Dominant language
Python
Stars
3.7k
Forks
1.3k
Avg merge
3h 18m
Merged PRs (30d)
3

Description

I meet this problem just like Marcel Zanoni posted on http://stackoverflow.com/questions/18718061/haystack-searchqueryset-wont-filter-on-a-charfield-with-one-character-whoosh

The accepted answer is a little ugly....So I look for answer here. Is it a bug or design to be ? How can I solve it elegantly?

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

No repository file or test is named in the issue. Start by reproducing the one-character CharField filter described in the issue and compare the behavior with the linked Stack Overflow report; done means determining whether the behavior is a bug or intended design and documenting an accepted resolution.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
search
Issue type
Bug
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.