mrkamel / search_cop

Search engine like fulltext query support for ActiveRecord
MIT License
825 stars 39 forks source link

Suggestion: Option for `exact: true` (or `right_wildcard: false`) #56

Closed DannyBen closed 4 years ago

DannyBen commented 4 years ago

Hi,

I have noticed that exact search was somewhat discussed in #23, but I think this issue is different.

I know there is the option to disable left wildcard, but:

search_scope :search do
  attributes :first_name, :last_name, :location
  # was hoping for this:
  options :location, exact: true
  # or at least this:
  options :location, left_wildcard: false, right_wildcard: false
end
mrkamel commented 4 years ago

available in master now