i’m using solr+haystack(django plugin) on the backend and the search is working fine;
While Django(and Haystack) with its templates is doing everything for me(I mean its pretty simple to configure and use), ExtJS4 is a little more complex;
The question is how to use Solr using ExtJS4?
An example is very much appreciated;
Thanks for any help and sorry for my English;
As ExtJS4 is a MVC framework, the solution is done like MVC;
The controller/Search.js
The models/Search.js
The store/Searches.js
The view/search/Search.js
The view/search/SearchList.js
Somewhere in the view/Viewport.js
xtype: 'search',should be inserted for a text field to be displayed.That’s all for a ExtJS4 part.
On server-side —
Django:‘haystack’ and Solr should be installed and configured (by ‘configured’ i mean: search should already work on the server-side);
In someapp/view.py
Finally in your urls.py you should add:
(r'^searchlist/','someapp.views.searchlist'),That was for it. Best wishes.
P.S.
I know this is not the greatest answer and there’s lack of explanation, but as for me, I rather prefer a code example than verbal explanation.