Class: Couchbase::SearchRowLocation

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/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:



1469
1470
1471
# File 'lib/couchbase/search_options.rb', line 1469

def initialize
  yield self if block_given?
end

Instance Attribute Details

#array_positions ⇒ Array<Integer>

Returns the positions of the term within any elements.

Returns:

  • (Array<Integer>) —

    the positions of the term within any elements.



1466
1467
1468
# File 'lib/couchbase/search_options.rb', line 1466

def array_positions
  @array_positions
end

#end_offset ⇒ Integer

Returns end byte offset of the term in the field.

Returns:

  • (Integer) —

    end byte offset of the term in the field



1463
1464
1465
# File 'lib/couchbase/search_options.rb', line 1463

def end_offset
  @end_offset
end

#field ⇒ String

Returns:

  • (String)


1451
1452
1453
# File 'lib/couchbase/search_options.rb', line 1451

def field
  @field
end

#position ⇒ Integer

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



1457
1458
1459
# File 'lib/couchbase/search_options.rb', line 1457

def position
  @position
end

#start_offset ⇒ Integer

Returns start byte offset of the term in the field.

Returns:

  • (Integer) —

    start byte offset of the term in the field



1460
1461
1462
# File 'lib/couchbase/search_options.rb', line 1460

def start_offset
  @start_offset
end

#term ⇒ String

Returns:

  • (String)


1454
1455
1456
# File 'lib/couchbase/search_options.rb', line 1454

def term
  @term
end