divio / aldryn-search

Haystack 2.0 search index for django CMS
Other
48 stars 78 forks source link

haystack.backends.simple_backend.SimpleEngine doesn't seem to work with Django CMS #68

Open macolo opened 8 years ago

macolo commented 8 years ago

I am posting this here as it's essential for aldryn-search for this to work.

The SimpleEngine backend doesn't return any search results (while haystack.backends.whoosh_backend.WhooshEngine does, exact same settings).

I tried adding the apphook to a page and using the default search form. Result: "No results found."

On the shell I am able to see search results (based on http://django-haystack.readthedocs.io/en/v2.4.1/debugging.html#no-results-found-on-the-web-page) however running

from haystack.query import SearchQuerySet
sqs = SearchQuerySet().all()
for result in sqs:
   print (sqs.text)

shows that no result has a property text.

stefanfoulis commented 8 years ago

I've never used SimpleEngine, so I can't speak from experience. But maybe it has something to do with how languages are mapped to indexes?

georgmzimmer commented 7 years ago
from haystack.query import SearchQuerySet
sqs = SearchQuerySet().all()
for result in sqs:
   print (result.text)