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.
1347 1348 1349 |
# File 'lib/couchbase/search_options.rb', line 1347 def initialize yield self if block_given? end |
Instance Attribute Details
#array_positions ⇒ Array<Integer>
Returns 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_offset ⇒ Integer
Returns 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 |
#field ⇒ String
1329 1330 1331 |
# File 'lib/couchbase/search_options.rb', line 1329 def field @field end |
#position ⇒ Integer
Returns 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_offset ⇒ Integer
Returns 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 |
#term ⇒ String
1332 1333 1334 |
# File 'lib/couchbase/search_options.rb', line 1332 def term @term end |