public interface SolrSearchClient
Modifier and Type | Method and Description |
---|---|
boolean |
applyCommonParameters(SolrQuery query)
Applies common search parameters from the request to the query.
|
QueryResponse |
execute(SolrParams query)
Executes a query on the SolrQuery.
|
void |
execute(SolrParams query,
java.lang.String writerType,
java.util.function.Consumer<java.io.Reader> processor)
Executes a query on the solr server, without parsing the return value.
|
QueryResponse |
execute(SolrQuery query)
Deprecated.
|
void |
execute(SolrQuery query,
java.lang.String writerType,
java.util.function.Consumer<java.io.Reader> processor)
Deprecated.
|
ContentViewerNavigationModel |
getNavigationModel(QueryResponse solrResponse,
java.lang.String startRowParameter)
Returns a navigation model which generates URLs for navigating the result set.
|
SolrQuery |
getQuery(java.lang.String queryName)
Gets a SolrQuery object from session (if present), or creates a new SolrQuery and stores in session.
|
ContentViewerRowSetModel |
getRowSet(QueryResponse solrResponse,
java.lang.String presentationStyleExternalKey)
Returns a ContentViewerRowSetModel containing rows corresponding to the specified presentation
style, for the results returned by Solr.
|
SolrQuery |
newQuery()
Creates a new SolrQuery object, ready for use.
|
SolrQuery getQuery(java.lang.String queryName)
queryName
- the logical name of the query, used to store the query in the sessionSolrQuery newQuery()
boolean applyCommonParameters(SolrQuery query)
Note that if the request specifies a new query (using ?q=string
), this method
will call ModifiableSolrParams.clear()
.
query
- The SolrQuery to apply the parameters toQueryResponse execute(SolrParams query) throws java.lang.Exception
query
- query to runjava.lang.Exception
- when something goes wrong@Deprecated QueryResponse execute(SolrQuery query) throws java.lang.Exception
java.lang.Exception
void execute(SolrParams query, java.lang.String writerType, java.util.function.Consumer<java.io.Reader> processor) throws java.io.IOException, SolrServerException
query
- query to runwriterType
- WriterType to pass to solr server as the "wt" query parameter; often "json" or "xml"processor
- Consumer that will receive the data for processingjava.io.IOException
SolrServerException
@Deprecated void execute(SolrQuery query, java.lang.String writerType, java.util.function.Consumer<java.io.Reader> processor) throws java.io.IOException, SolrServerException
java.io.IOException
SolrServerException
ContentViewerRowSetModel getRowSet(QueryResponse solrResponse, java.lang.String presentationStyleExternalKey)
solrResponse
- query response to get rowset forpresentationStyleExternalKey
- external key of presentation style to useContentViewerNavigationModel getNavigationModel(QueryResponse solrResponse, java.lang.String startRowParameter)
getQuery(String)
solrResponse
- the response object to navigateCopyright © Acando AS. All Rights Reserved.