question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suggestion: reduce dependency - full text-search / django-haystack

See original GitHub issue

First of all, thanks for sharing such an awesome project! It’s really great.

Regarding this issue / suggestion - it would be great if we can reduce dependency such as django-haystack. It’s another great project, but it appears to be a bit outdated, especially their ElasticsearchSearchEngine implementation. I’m also getting the following warning with SimpleEngine (update_index … even though it says it has indexed it):

haystack/backends/simple_backend.py:41: UserWarning: update is not implemented in this backend
  warn('update is not implemented in this backend')

… which is related to https://github.com/ellmetha/django-machina/issues/85#issuecomment-426107733 … but shows no result on the search.

For simple / small forums, django __search or __icontains is probably good enough? In any case, I will try to see if I can take a stab at it.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ellmethacommented, Dec 26, 2019

To add more precision regarding this, I plan to completely rewrite the forum_search application and introduce search backend mechanism that would be built in django-machina. At first we could image releasing something with only two backends: a default one working with all database backends, and another one for PostgreSQL. In the future other backends could be added depending on the needs (elasticsearh, etc). 😉

0reactions
BoPengcommented, Apr 8, 2021

I landed on this thread while looking at the whole machina/haystack issue. It is clear to me that haystack is no longer maintained and should be removed from machina.

The way to move forward, may I suggest, is to develop separate search functions for each search engine. For example, a new machina-search-elasticsearch app that uses django-elasticsearch-dsl could be added for elastic search. Support for other search engines can be added in a similar fashion.

I believe that this is the easiest way to avoid the entire haystack dilemma, namely trying to come up with a “common ground” or “abstract layer” for all search engines (which is a revamped machina-search app for the case of machina) but ends up not supporting any of them well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SearchQuerySet API — Haystack 2.5.0 documentation
This method allows you to set the text which will be passed to the backend search engine for spelling suggestions. This is helpful...
Read more >
Suggestions for Django-Oscar and Django-Haystack
In spite of my claim in this blog post that most e-commerce sites do not need fulltext search, there are a huge number...
Read more >
Haystack Documentation - Read the Docs
Haystack provides modular search for Django. ... Takes a block of text and highlights words from a provided query within that block of...
Read more >
Postgres full-text search is Good Enough (2015) - Hacker News
With this solution, it looks like Django is keeping the Elasticsearch index in sync with the SQL database. What happens if the Django...
Read more >
Basic and Full-text Search with Django and Postgres
This tutorial looks at how to add basic and full-text search to a Django app with Postgres.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found