public class RemoteSolrConnector extends SolrServerConnector implements SolrConnector
SolrConnector.LoadTimeURL
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
corename |
private SolrInstance |
instance |
private boolean |
useBinaryResponseWriter |
classLoaderSynchro, log, server
CATCHALL_DTERM, CATCHALL_QUERY, CATCHALL_TERM, catchallQuery, catchSuccessQuery, pagesize_docs, pagesize_ids, POISON_DOCUMENT, POISON_ID, SOLR_ID_and_LOAD_DATE_FIELDS, SOLR_ID_FIELDS
Constructor and Description |
---|
RemoteSolrConnector(SolrInstance instance,
boolean useBinaryResponseWriter)
create a new solr connector
|
RemoteSolrConnector(SolrInstance instance,
boolean useBinaryResponseWriter,
java.lang.String corename) |
Modifier and Type | Method and Description |
---|---|
int |
bufferSize()
get the size of a write buffer (if any) of pending write requests
|
void |
clearCaches()
clear all caches: inside solr and ouside solr within the implementations of this interface
|
void |
close()
close the server connection
|
boolean |
equals(java.lang.Object o) |
SolrInstance |
getInstance() |
QueryResponse |
getResponseByParams(ModifiableSolrParams params)
get a "full" query response from solr.
|
int |
hashCode() |
static void |
main(java.lang.String[] args) |
add, add, add, clear, commit, deleteById, deleteByIds, deleteByQuery, getDocumentListByParams, getFields, getSegmentCount, getServer, getSize, init, isClosed, optimize
concurrentDocumentsByQueries, concurrentDocumentsByQuery, concurrentIDsByQueries, concurrentIDsByQuery, ensureEssentialFieldsIncluded, getCountByQuery, getDocumentById, getDocumentListByQuery, getFacets, getLoadTimeURL, getLoadTimeURL, getSolrQuery, iterator, update, update
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
add, add, clear, commit, concurrentDocumentsByQueries, concurrentDocumentsByQuery, concurrentIDsByQueries, concurrentIDsByQuery, deleteById, deleteByIds, deleteByQuery, getCountByQuery, getDocumentById, getDocumentListByParams, getDocumentListByQuery, getFacets, getLoadTimeURL, getSegmentCount, getSize, isClosed, optimize, update, update
private final SolrInstance instance
private final java.lang.String corename
private final boolean useBinaryResponseWriter
public RemoteSolrConnector(SolrInstance instance, boolean useBinaryResponseWriter) throws java.io.IOException
instance
- the instance of the remote solr url, like http://192.168.1.60:8983/solr/ or http://admin:pw@192.168.1.60:8983/solr/java.io.IOException
public RemoteSolrConnector(SolrInstance instance, boolean useBinaryResponseWriter, java.lang.String corename)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public SolrInstance getInstance()
public void close()
SolrConnector
close
in interface SolrConnector
close
in class SolrServerConnector
public int bufferSize()
SolrConnector
bufferSize
in interface SolrConnector
public void clearCaches()
SolrConnector
clearCaches
in interface SolrConnector
public QueryResponse getResponseByParams(ModifiableSolrParams params) throws java.io.IOException
SolrConnector
getResponseByParams
in interface SolrConnector
java.io.IOException
public static void main(java.lang.String[] args)