I am very new to Oscar, I have been trying to use the builtin support for faceted search for my Oscar project but I have no clue (can't find any documentation).
I have :
- My elastic search running at port 9200
Haystack settings :
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', 'URL': 'http://127.0.0.1:9200/', 'INDEX_NAME': 'haystack', }, }
I was able to index my catalogue successfully with
python manage.py rebuild_index
I tried :
- But my /search/ page still lists only categories to click through.
- I digged in deeper into the
views.py
in search app (from oscar) and found itsMultiFacetedSearchView
is renderingsearch/results.html
- 'search/results.html' seems to be looping over categories and rendering categories only. - - Nothing related to faceted search.
I don't know if i am missing something or what ? How should I enable faceted search for my catelogue ? [ If its a 1 step process ] Even if its not a 1 step process, then can you link me to some code snippets or documentation ( I was enable to find any ) ?
[ Also, I am new to haystack as well so may be I am asking something stupid ]