Class Overview
A SolrConnectorLifecycleAdapter
is a wrapper around SolrConnector
that adds lifecycle methods to the pojo.
Summary
[Expand]
Inherited Methods |
From class
org.mule.modules.adapters.SolrConnectorCapabilitiesAdapter
boolean
|
isCapableOf(Capability capability)
Returns true if this module implements such capability
|
|
From class
org.mule.modules.SolrConnector
synchronized
void
|
connect()
Connect to the Solr Server using commons http client gateway.
|
String
|
connectionIdentifier()
Identify the connection.
|
UpdateResponse
|
deleteById(String id)
Delete a specific element on the index by ID.
|
UpdateResponse
|
deleteByQuery(String q)
Delete elements by specifying a query, if you wish to delete everything use *:* as the query parameter.
|
synchronized
void
|
disconnect()
Disconnect from the server, nothing special needed at this time.
|
String
|
getPassword()
|
String
|
getServerUrl()
|
String
|
getUsername()
|
UpdateResponse
|
index(Object payload)
Index a simple document or a collection of documents and then, if everything goes well, commit the results to solr.
|
UpdateResponse
|
indexPojo(Object payload)
Index a simple pojo or a collection of pojo's and then, if everything goes well, commit the results to solr.
|
boolean
|
isConnected()
Validate the connection by sending a ping request.
|
static
SolrInputDocument
|
messageToInputDocumentTransformer(Map<String, Object> fields)
Convert the information of a message to an indexable SolrInputDocument.
|
QueryResponse
|
query(String q, String handler, String highlightField, int highlightSnippets, List<String> facetFields, int facetLimit, int facetMinCount, Map<String, String> parameters, List<String> filterQueries, Map<String, SolrQuery.ORDER> sortFields)
Submit a query to the server and get the results.
|
void
|
setPassword(String password)
|
void
|
setServerUrl(String serverUrl)
|
void
|
setUsername(String username)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
org.mule.api.Capabilities
abstract
boolean
|
isCapableOf(Capability arg0)
|
|
From interface
org.mule.api.lifecycle.Disposable
|
From interface
org.mule.api.lifecycle.Initialisable
abstract
void
|
initialise()
|
|
From interface
org.mule.api.lifecycle.Startable
|
From interface
org.mule.api.lifecycle.Stoppable
|
Public Constructors
public
SolrConnectorLifecycleAdapter
()
Public Methods
public
void
initialise
()