Features
- Parses
keywords
as well asfilters:value
syntax. - Handles
"quotes spaces ::: escapes \r\n newlines"
. - Has proper lexing and parsing system instead of a regular expression.
gem install truth_serum
require 'truth_serum'
result = TruthSerum.parse("hello world key:value -negate:yes")
puts result.terms
puts result.filters
puts result.negative_filters
query = TruthSerum.unparse(result)
puts query
MIT