Class: Couchbase::Cluster::SearchRow

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ SearchRow

Returns a new instance of SearchRow.

Yield Parameters:

[View source]

1441
1442
1443
1444
# File 'lib/couchbase/search_options.rb', line 1441

def initialize
  @fields = nil
  yield self if block_given?
end

Instance Attribute Details

#explanationHash

Returns:

  • (Hash)

1428
1429
1430
# File 'lib/couchbase/search_options.rb', line 1428

def explanation
  @explanation
end

#fragmentsHash<String => Array<String>>

Returns:

  • (Hash<String => Array<String>>)

1431
1432
1433
# File 'lib/couchbase/search_options.rb', line 1431

def fragments
  @fragments
end

#idString

Returns document identifier.

Returns:

  • (String)

    document identifier


1419
1420
1421
# File 'lib/couchbase/search_options.rb', line 1419

def id
  @id
end

#indexString

Returns name of the index.

Returns:

  • (String)

    name of the index


1416
1417
1418
# File 'lib/couchbase/search_options.rb', line 1416

def index
  @index
end

#locationsSearchRowLocations

Returns:


1425
1426
1427
# File 'lib/couchbase/search_options.rb', line 1425

def locations
  @locations
end

#scoreFloat

Returns:

  • (Float)

1422
1423
1424
# File 'lib/couchbase/search_options.rb', line 1422

def score
  @score
end

#transcoderJsonTranscoder

Returns transcoder to use for the fields.

Returns:


1434
1435
1436
# File 'lib/couchbase/search_options.rb', line 1434

def transcoder
  @transcoder
end

Instance Method Details

#fieldsObject

[View source]

1436
1437
1438
# File 'lib/couchbase/search_options.rb', line 1436

def fields
  @transcoder.decode(@fields, :json) if @fields && @transcoder
end