Skip to content

Commit

Permalink
Fix spreadly search filter not works
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 18, 2023
1 parent c0af1b0 commit f0025f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/search_query_transformer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def valid
private

def clauses_by_operator
@clauses_by_operator ||= @clauses.compact.chunk(&:operator).to_h
@clauses_by_operator ||= @clauses.compact.sort_by(&:operator).chunk(&:operator).to_h
end

def flags_from_clauses!
Expand Down Expand Up @@ -330,7 +330,7 @@ def initialize(prefix, operator, term, options = {}) # rubocop:disable Metrics/C
'desc'
end
when 'searchability'
@filter = :searchablity
@filter = :searchability
@type = :terms
@statuses_index_only = true
@term = case term
Expand Down

0 comments on commit f0025f0

Please sign in to comment.