forked from mirrors/catstodon
Add search syntax for operators and phrases (#11411)
This commit is contained in:
parent
501148ab91
commit
b9fbcbfe4e
6 changed files with 112 additions and 6 deletions
1
Gemfile
1
Gemfile
|
@ -64,6 +64,7 @@ gem 'nsa', '~> 0.2'
|
|||
gem 'oj', '~> 3.8'
|
||||
gem 'ostatus2', '~> 2.0'
|
||||
gem 'ox', '~> 2.11'
|
||||
gem 'parslet'
|
||||
gem 'posix-spawn', git: 'https://github.com/rtomayko/posix-spawn', ref: '58465d2e213991f8afb13b984854a49fcdcc980c'
|
||||
gem 'pundit', '~> 2.0'
|
||||
gem 'premailer-rails'
|
||||
|
|
|
@ -404,6 +404,7 @@ GEM
|
|||
parallel
|
||||
parser (2.6.3.0)
|
||||
ast (~> 2.4.0)
|
||||
parslet (1.8.2)
|
||||
pastel (0.7.2)
|
||||
equatable (~> 0.5.0)
|
||||
tty-color (~> 0.4.0)
|
||||
|
@ -724,6 +725,7 @@ DEPENDENCIES
|
|||
paperclip (~> 6.0)
|
||||
paperclip-av-transcoder (~> 0.6)
|
||||
parallel_tests (~> 2.29)
|
||||
parslet
|
||||
pg (~> 1.1)
|
||||
pghero (~> 2.2)
|
||||
pkg-config (~> 1.3)
|
||||
|
|
14
app/lib/search_query_parser.rb
Normal file
14
app/lib/search_query_parser.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||