class Groonga::Command::QueryExpand

A command class that represents `query_expand` command.

@since 1.2.1

Public Class Methods

command_name() click to toggle source
# File lib/groonga/command/query-expand.rb, line 26
def command_name
  "query_expand"
end
parameter_names() click to toggle source
# File lib/groonga/command/query-expand.rb, line 30
def parameter_names
  [
    :expander,
    :query,
    :flags,
  ]
end

Public Instance Methods

allow_column?() click to toggle source

@return [Boolean] `true` if `“ALLOW_COLUMN”` is specified in

{#flags}, `false` otherwise.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 74
def allow_column?
  flags.include?("ALLOW_COLUMN")
end
allow_leading_not?() click to toggle source

@return [Boolean] `true` if `“ALLOW_LEADING_NOT”` is specified in

{#flags}, `false` otherwise.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 90
def allow_leading_not?
  flags.include?("ALLOW_LEADING_NOT")
end
allow_pragma?() click to toggle source

@return [Boolean] `true` if `“ALLOW_PRAGMA”` is specified in

{#flags}, `false` otherwise.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 66
def allow_pragma?
  flags.include?("ALLOW_PRAGMA")
end
allow_update?() click to toggle source

@return [Boolean] `true` if `“ALLOW_UPDATE”` is specified in

{#flags}, `false` otherwise.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 82
def allow_update?
  flags.include?("ALLOW_UPDATE")
end
expander() click to toggle source

@return [String] `expander` parameter value.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 44
def expander
  self[:expander]
end
flags() click to toggle source

@return [Array<String>] `flags` parameter value.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 58
def flags
  @flags ||= flags_value(:flags)
end
none?() click to toggle source

@return [Boolean] `true` if `“NONE”` is specified in {#flags},

`false` otherwise.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 98
def none?
  flags.include?("NONE")
end
query() click to toggle source

@return [String] `query` parameter value.

@since 1.2.1

# File lib/groonga/command/query-expand.rb, line 51
def query
  self[:query]
end