Package org.ametys.cms.search.solr
Class DefaultUpdateClient
java.lang.Object
org.apache.solr.client.solrj.SolrClient
org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient
org.ametys.cms.search.solr.AbstractAmetysConcurrentUpdateClient
org.ametys.cms.search.solr.DefaultUpdateClient
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable
Default update
SolrClient which uses the Solr default Update Request Processor chain- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient
org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient.Builder -
Field Summary
Fields inherited from class org.apache.solr.client.solrj.SolrClient
defaultCollection -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUpdateClient(String solrServerUrl, Optional<Integer> solrSocketTimeout, String collectionName, int queueSize, int threadCount, org.slf4j.Logger logger) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.response.UpdateResponsecommit()org.apache.solr.client.solrj.response.UpdateResponsecommit(boolean waitFlush, boolean waitSearcher) org.apache.solr.client.solrj.response.UpdateResponsecommit(boolean waitFlush, boolean waitSearcher, boolean softCommit) org.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseorg.apache.solr.client.solrj.response.UpdateResponseMethods inherited from class org.ametys.cms.search.solr.AbstractAmetysConcurrentUpdateClient
add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, handleError, onSuccess, optimize, optimize, optimize, optimize, optimize, optimize, rollback, rollbackMethods inherited from class org.apache.solr.client.solrj.impl.ConcurrentUpdateHttp2SolrClient
blockUntilFinished, close, request, setPollQueueTime, shutdownNowMethods inherited from class org.apache.solr.client.solrj.SolrClient
getBinder, getById, getById, getById, getById, getById, getById, getById, getById, getContext, getDefaultCollection, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request
-
Constructor Details
-
DefaultUpdateClient
public DefaultUpdateClient(String solrServerUrl, Optional<Integer> solrSocketTimeout, String collectionName, int queueSize, int threadCount, org.slf4j.Logger logger) Constructor- Parameters:
solrServerUrl- The Solr server URLsolrSocketTimeout- The Solr socket timeout (in millis)collectionName- The name of the collection, on which operations will be allowed. Operations on other collections will be forbidden.queueSize- The buffer size before the documents are sent to the serverthreadCount- The number of background threads used to empty the queuelogger- internal logger
-
-
Method Details
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit() throws org.apache.solr.client.solrj.SolrServerException, IOException- Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(boolean waitFlush, boolean waitSearcher, boolean softCommit) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-
commit
public org.apache.solr.client.solrj.response.UpdateResponse commit(String collection, boolean waitFlush, boolean waitSearcher, boolean softCommit) throws org.apache.solr.client.solrj.SolrServerException, IOException - Overrides:
commitin classAbstractAmetysConcurrentUpdateClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionIOException
-