Class: Couchbase::SearchRowLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ SearchRowLocation

Returns a new instance of SearchRowLocation.

Yield Parameters:



1347
1348
1349
# File 'lib/couchbase/search_options.rb', line 1347

def initialize
  yield self if block_given?
end

Instance Attribute Details

#array_positionsArray<Integer>

Returns the positions of the term within any elements.

Returns:

  • (Array<Integer>)

    the positions of the term within any elements.



1344
1345
1346
# File 'lib/couchbase/search_options.rb', line 1344

def array_positions
  @array_positions
end

#end_offsetInteger

Returns end byte offset of the term in the field.

Returns:

  • (Integer)

    end byte offset of the term in the field



1341
1342
1343
# File 'lib/couchbase/search_options.rb', line 1341

def end_offset
  @end_offset
end

#fieldString

Returns:

  • (String)


1329
1330
1331
# File 'lib/couchbase/search_options.rb', line 1329

def field
  @field
end

#positionInteger

Returns the position of the term within the field, starting at 1.

Returns:

  • (Integer)

    the position of the term within the field, starting at 1



1335
1336
1337
# File 'lib/couchbase/search_options.rb', line 1335

def position
  @position
end

#start_offsetInteger

Returns start byte offset of the term in the field.

Returns:

  • (Integer)

    start byte offset of the term in the field



1338
1339
1340
# File 'lib/couchbase/search_options.rb', line 1338

def start_offset
  @start_offset
end

#termString

Returns:

  • (String)


1332
1333
1334
# File 'lib/couchbase/search_options.rb', line 1332

def term
  @term
end