Suggestion: reduce dependency - full text-search / django-haystack
See original GitHub issueFirst 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:
- Created 4 years ago
- Comments:10 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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). 😉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 usesdjango-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 ofmachina
) but ends up not supporting any of them well.