pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 469 forks source link

Equivalent of `#none` from ActiveRecord? #1248

Closed pdany1116 closed 1 month ago

pdany1116 commented 1 year ago

Hi, I want to always return an empty result set for a search. Active Record has #none method that does this (https://apidock.com/rails/v4.0.2/ActiveRecord/QueryMethods/none).

Is there any way to achieve this with Thinking Sphinx?

Thanks!

pat commented 1 month ago

It only took me a year, but: I've just released v5.6.0 which has search_none available on models, as well as simply none that can be called on an existing search request, as well as via ThinkingSphinx.none. #1e8a666e