| SolrComponent |
Component used to :
open a connection to remote solr server
add a document to the index
search in the index by text and structured queries
search documents similar to an existing document (more like this)
delete one document from the index
drop a complete index
This class implements singleton pattern in order to share index connection
and improve performance (Solr server is thread-safe).
The index buffer is managed by Solr so we just use a counter to commit
documents when buffer configured size is achieved. |