Class: Redis::Commands::Search::GeoField

Inherits:
Field
  • Object
show all
Defined in:
lib/redis/commands/modules/search/field.rb

Overview

A GEO field, indexing longitude/latitude pairs for geo queries.

Instance Attribute Summary

Attributes inherited from Field

#alias_name, #name, #options, #query, #type

Instance Method Summary collapse

Methods inherited from Field

#to_args

Constructor Details

#initialize(name, query = nil, **options) ⇒ GeoField

Build a GEO field.

Parameters:

  • name (String, Symbol)

    the document attribute the field indexes

  • query (Query, nil) (defaults to: nil)

    a query the field is bound to



185
186
187
# File 'lib/redis/commands/modules/search/field.rb', line 185

def initialize(name, query = nil, **options)
  super(name, :geo, query, **options)
end