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