app/lib/search_query_transformer.rb
Method initialize
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def initialize(prefix, operator, term, options = {})
@prefix = prefix
@negated = operator == '-'
@options = options
@operator = :filter
Method default_filter
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def default_filter
{
bool: {
should: [
{