Class: Couchbase::SearchRowLocation
- Inherits:
-
Object
- Object
- Couchbase::SearchRowLocation
- Defined in:
- 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.
1380 1381 1382 |
# File 'lib/couchbase/search_options.rb', line 1380 def initialize yield self if block_given? end |
Instance Attribute Details
#array_positions ⇒ Array<Integer>
Returns the positions of the term within any elements.
1377 1378 1379 |
# File 'lib/couchbase/search_options.rb', line 1377 def array_positions @array_positions end |
#end_offset ⇒ Integer
Returns end byte offset of the term in the field.
1374 1375 1376 |
# File 'lib/couchbase/search_options.rb', line 1374 def end_offset @end_offset end |
#field ⇒ String
1362 1363 1364 |
# File 'lib/couchbase/search_options.rb', line 1362 def field @field end |
#position ⇒ Integer
Returns the position of the term within the field, starting at 1.
1368 1369 1370 |
# File 'lib/couchbase/search_options.rb', line 1368 def position @position end |
#start_offset ⇒ Integer
Returns start byte offset of the term in the field.
1371 1372 1373 |
# File 'lib/couchbase/search_options.rb', line 1371 def start_offset @start_offset end |
#term ⇒ String
1365 1366 1367 |
# File 'lib/couchbase/search_options.rb', line 1365 def term @term end |