Add searchable_by option as searchability alias
This commit is contained in:
parent
f0025f0ae2
commit
0aceea90ab
1 changed files with 4 additions and 4 deletions
|
@ -329,16 +329,16 @@ class SearchQueryTransformer < Parslet::Transform
|
|||
else
|
||||
'desc'
|
||||
end
|
||||
when 'searchability'
|
||||
when 'searchability', 'searchable_by'
|
||||
@filter = :searchability
|
||||
@type = :terms
|
||||
@statuses_index_only = true
|
||||
@term = case term
|
||||
when 'public'
|
||||
when 'public', 'all'
|
||||
%w(public private direct limited)
|
||||
when 'private'
|
||||
when 'private', 'follower', 'followers'
|
||||
%w(private direct limited)
|
||||
when 'direct'
|
||||
when 'direct', 'reaction', 'react', 'reacted'
|
||||
%w(direct limited)
|
||||
else
|
||||
%w(limited)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue