-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Searching different fields of the same model without the '$ python manage.py buildwatson' command #29
Comments
You can do this by creating a new search engine: https://gist.github.com/etianen/060d1fe02d79f9bc39b5 On 20 December 2013 14:25, Marcelo Salloum dos Santos <
|
Awesome, Dave! And how do I use that in my views files? Should I just try: other_search_engine = SearchEngine("other_search_engine") Cheers! |
You should create the other search engine in your models.py, or similar, You then call other_search_engine.search() in your views, as normal. On 20 December 2013 16:40, Marcelo Salloum dos Santos <
|
Great help Dave, Thank you very much! |
Hello guys,
I am developing a kind of a search bar with watson that allows some checkboxes to choose in which fields the database search will be performed.
Can I just specify it on the run or is it needed to tun the $ python manage.py buildwatson command again? Even if I had to build it again, wouldn't be an option, since my database is getting petty large it would consume some minutes, which is not desirable from the User's point of view.
Any hints on that?
The text was updated successfully, but these errors were encountered: