java.lang.Object | |
↳ | org.mule.modules.SolrConnector |
![]() |
![]() |
Module for Apache Solr Integration, it is based on the SolrJ Java Client API and allows interaction with Apache Solr standalone servers.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EMPTY_STRING_ARRAY | |||||||||||
logger | |||||||||||
password | The password for Solr's http basic authentication. | ||||||||||
server | |||||||||||
serverUrl | The URL of the Solr server to connect to. | ||||||||||
username | The username for Solr's http basic authentication. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Connect to the Solr Server using commons http client gateway.
| |||||||||||
Identify the connection.
| |||||||||||
Delete a specific element on the index by ID.
| |||||||||||
Delete elements by specifying a query, if you wish to delete everything use *:* as the query parameter.
| |||||||||||
Disconnect from the server, nothing special needed at this time.
| |||||||||||
Index a simple document or a collection of documents and then, if everything goes well, commit the results to solr.
| |||||||||||
Index a simple pojo or a collection of pojo's and then, if everything goes well, commit the results to solr.
| |||||||||||
Validate the connection by sending a ping request.
| |||||||||||
Convert the information of a message to an indexable SolrInputDocument.
| |||||||||||
Submit a query to the server and get the results.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The password for Solr's http basic authentication. This connector does not allow empty passwords.
The URL of the Solr server to connect to. To define the solr core to use, specify it here, otherwise the default core will be used.
The username for Solr's http basic authentication. This connector does not allow empty user names.
Connect to the Solr Server using commons http client gateway.
ConnectionException |
---|
Delete a specific element on the index by ID.
id | The ID of the element to delete. |
---|
SolrModuleException | This exception wraps the exceptions thrown by the client. |
---|
Delete elements by specifying a query, if you wish to delete everything use *:* as the query parameter.
q | The query of which results will be deleted. |
---|
SolrModuleException | This exception wraps the exceptions thrown by the client. |
---|
Disconnect from the server, nothing special needed at this time.
Index a simple document or a collection of documents and then, if everything goes well, commit the results to solr.
payload | The document or collection of documents to send to the solr server. |
---|
SolrModuleException | This exception wraps exceptions thrown by the client. |
---|
Index a simple pojo or a collection of pojo's and then, if everything goes well, commit the results to solr.
payload | The pojo or collection of pojos to send to the solr server. |
---|
SolrModuleException | This exception wraps exceptions thrown by the client. |
---|
Validate the connection by sending a ping request.
Convert the information of a message to an indexable SolrInputDocument.
fields | A map which keys are field names and which values are the actual values for these fields. |
---|
Submit a query to the server and get the results.
q | This is the query string called 'q' using solr's nomenclature, normally this has the form of field:value or just value for querying the default field. Please take a look at solr's documentation for info on how to write queries. |
---|---|
handler | Which handler to use when querying. |
highlightField | The field on which to highlight search results. |
highlightSnippets | The number of highlight snippets per result. |
facetFields | A list of fields for a faceted query. If not null, will enable faceted search. |
facetLimit | The facet limit of the query. |
facetMinCount | The facet minimum count of the query. |
parameters | These parameters will be added to the query. |
filterQueries | A list of queries to filter the results. |
sortFields | A list of fields (with sorting criteria) in which the results will be sorted. Sorting criteria values could be only either asc or desc. |
SolrModuleException | This exception wraps exceptions thrown when querying the server fails. |
---|