Search Class
Command used to perform a (Yokozuna) search.
As a convenience, a builder class is provided:
 var search = new Search.Builder()
                 .withIndexName(myIndex)
                 .withQuery(myQuery)
                 .withNumRows(10)
                 .withCallback(myCallback)
                 .build();
See Search.Builder
For more information on Riak Search (Yokozuna/Solr) see: Using Search
Constructor
Search
        - 
                        
options - 
                        
callback 
Parameters:
- 
                        
optionsObjectThe options for this command.
- 
                                    
indexNameStringSet the index name used for this search.
 - 
                                    
qStringSet the Solr query string.
 - 
                                    
[maxRows=10]Number optionalSpecify the maximum number of results to return.
 - 
                                    
[start=0]String optionalSpecify the starting result of the query.
 - 
                                    
[sortField]String optionalSort the results on the specified field name.
 - 
                                    
[filterQuery]String optionalFilters the search by an additional query scoped to inline fields.
 - 
                                    
[defaultField]String optionalUse the provided field as the default. Overrides the “default_field” setting in the schema file.
 - 
                                    
[defaultOperation]String optionalSet the default operation. Allowed settings are either “and” or “or”.
 - 
                                    
[returnFields]String optionalOnly return the provided fields.
 - 
                                    
[presort]String optionalSorts all of the results. Either "key" or "score".
 - 
                                    
[convertDocuments]Boolean optionalConvert Solr document values to JS types.
 
 - 
                                    
 - 
                        
callbackFunctionThe callback to execute when the comman completes.
- 
                                    
errStringan error message. Will be null if no error.
 - 
                                    
responseObjectthe response from Riak (Solr)
- 
                                                
numFoundNumberThe number of documents found. - 
                                                
maxScoreNumberThe max score value. - 
                                                
docsObjectArray of documents returned from Solr. 
 - 
                                                
 - 
                                    
dataObjectadditional error data. Will be null if no error.
 
 - 
                                    
 
Item Index
Methods
constructPbRequest
        ()
        
            Object
        
        protected
    
    Returns:
getCallback
        ()
        
            Function
        
        private
    
    Returns:
getExpectedResponseCode
        ()
        
            Number
        
        private
    
    Returns:
getPbReqBuilder
        ()
        
            Object
        
        private
    
    Returns:
getRiakMessage
        ()
        
            Object
        
        private
    
    Returns:
onError
        - 
                        
msg - 
                        
data 
Parameters:
- 
                        
msgStringan error message - 
                        
dataObjectadditional error data 
onRiakError
        - 
                        
rpbErrorResp 
Parameters:
- 
                        
rpbErrorRespObjectthe RpbErrorResp protocol buffer 
onSuccess
        - 
                        
pbResponseMessage 
Parameters:
- 
                        
pbResponseMessageObjectthe protocol buffer received from riak 
