Class: Couchbase::SearchRowLocation
- Inherits:
-
Object
- Object
- Couchbase::SearchRowLocation
- 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
-
#array_positions ⇒ Array<Integer>
The positions of the term within any elements.
-
#end_offset ⇒ Integer
End byte offset of the term in the field.
- #field ⇒ String
-
#position ⇒ Integer
The position of the term within the field, starting at 1.
-
#start_offset ⇒ Integer
Start byte offset of the term in the field.
- #term ⇒ String
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ SearchRowLocation
constructor
A new instance of SearchRowLocation.
Constructor Details
#initialize {|self| ... } ⇒ SearchRowLocation
Returns a new instance of SearchRowLocation.
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.
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.
1463 1464 1465 |
# File 'lib/couchbase/search_options.rb', line 1463 def end_offset @end_offset end |
#field ⇒ 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.
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.
1460 1461 1462 |
# File 'lib/couchbase/search_options.rb', line 1460 def start_offset @start_offset end |
#term ⇒ String
1454 1455 1456 |
# File 'lib/couchbase/search_options.rb', line 1454 def term @term end |