etianen / django-watson

Full-text multi-table search application for Django. Easy to install and use, with good performance.
BSD 3-Clause "New" or "Revised" License
1.2k stars 130 forks source link

Register Filtered Queryset #221

Closed zuzanatoldyova closed 6 years ago

zuzanatoldyova commented 6 years ago

HI, thank you for a great plugin, I have one issue where it's not working quite as expected. I'm trying to register a filtered queryset according to this documentation, however it seems like the filter is not working because I get registered all my model instances. I tried it with specific fields and also without fields, run the buildwatson but I still get the same result.

etianen commented 6 years ago

Can I see the relevant code?

On 14 October 2017 at 00:06, zuzanatoldyova notifications@github.com wrote:

HI, thank you for a great plugin, I have one issue where it's not working quite as expected. I'm trying to register a filtered queryset according to this documentation https://github.com/etianen/django-watson/wiki/registering-models#only-displaying-live-search-results, however it seems like the filter is not working because I get registered all my model instances. I tried it with specific fields and also without fields, run the buildwatson but I still get the same result.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etianen/django-watson/issues/221, or mute the thread https://github.com/notifications/unsubscribe-auth/AAJFCGWsKkzsCl9i1JtL1kDjeTCKD8D7ks5sr-zmgaJpZM4P5JeY .

zuzanatoldyova commented 6 years ago

I found out that it's working with the search as described. I was confused because I was using filter.