123456789_123456789_123456789_123456789_123456789_

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

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Field
Instance Chain:
self, Field
Inherits: Redis::Commands::Search::Field
Defined in: lib/redis/commands/modules/search/field.rb

Overview

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

Class Method Summary

Field - Inherited

.new

Build a field definition.

Instance Attribute Summary

Instance Method Summary

Field - Inherited

#to_args

Render this field as the array of FT.CREATE SCHEMA tokens.

Constructor Details

.new(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

[ GitHub ]

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

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