public interface SolrLoggerService
| Modifier and Type | Method and Description |
|---|---|
Object |
anonymizeIp(String ip) |
void |
commit() |
void |
commitShard(String shard) |
void |
deleteIP(String ip) |
void |
deleteRobotsByIP() |
void |
deleteRobotsByIsBotFlag() |
void |
exportHits()
Export all SOLR usage statistics for viewing/downloading content to a flat text file.
|
String |
getIgnoreSpiderIPs()
Returns in a filterQuery string all the ip addresses that should be ignored
|
boolean |
isUseProxies() |
void |
markRobotByUserAgent(String agent) |
void |
markRobotsByIP() |
void |
optimizeSOLR()
Maintenance to keep a SOLR index efficient.
|
void |
post(DSpaceObject dspaceObject,
javax.servlet.http.HttpServletRequest request,
EPerson currentUser)
Deprecated.
|
void |
postSearch(DSpaceObject resultObject,
javax.servlet.http.HttpServletRequest request,
EPerson currentUser,
List<String> queries,
int rpp,
String sortBy,
String order,
int page,
DSpaceObject scope) |
void |
postView(DSpaceObject dspaceObject,
javax.servlet.http.HttpServletRequest request,
EPerson currentUser)
Store a usage event into Solr.
|
void |
postView(DSpaceObject dspaceObject,
String ip,
String userAgent,
String xforwardedfor,
EPerson currentUser) |
void |
postWorkflow(UsageWorkflowEvent usageWorkflowEvent) |
void |
query(String query,
int max) |
org.apache.solr.client.solrj.response.QueryResponse |
query(String query,
String filterQuery,
String facetField,
int rows,
int max,
String dateType,
String dateStart,
String dateEnd,
List<String> facetQueries,
String sort,
boolean ascending) |
org.apache.solr.client.solrj.response.QueryResponse |
query(String query,
String filterQuery,
String facetField,
int rows,
int max,
String dateType,
String dateStart,
String dateEnd,
List<String> facetQueries,
String sort,
boolean ascending,
boolean defaultFilterQueries) |
org.apache.solr.client.solrj.response.QueryResponse |
query(String query,
String filterQuery,
String facetField,
int rows,
int max,
String dateType,
String dateStart,
String dateEnd,
List<String> facetQueries,
String sort,
boolean ascending,
boolean defaultFilterQueries,
boolean includeShardField) |
ObjectCount[] |
queryFacetDate(String query,
String filterQuery,
int max,
String dateType,
String dateStart,
String dateEnd,
boolean showTotal,
Context context)
Query used to get values grouped by the date.
|
ObjectCount[] |
queryFacetField(String query,
String filterQuery,
String facetField,
int max,
boolean showTotal,
List<String> facetQueries)
Query used to get values grouped by the given facet field.
|
Map<String,Integer> |
queryFacetQuery(String query,
String filterQuery,
List<String> facetQueries) |
Map<String,List<String>> |
queryField(String query,
List oldFieldVals,
String field) |
ObjectCount |
queryTotal(String query,
String filterQuery) |
void |
reindexBitstreamHits(boolean removeDeletedBitstreams) |
void |
removeIndex(String query)
Delete data from the index, as described by a query.
|
void |
shardSolrIndex() |
void |
storeParents(org.apache.solr.common.SolrInputDocument doc1,
DSpaceObject dso)
Method just used to log the parents.
|
void |
update(String query,
String action,
List<String> fieldNames,
List<List<Object>> fieldValuesList) |
void |
update(String query,
String action,
List<String> fieldNames,
List<List<Object>> fieldValuesList,
boolean commit) |
void post(DSpaceObject dspaceObject, javax.servlet.http.HttpServletRequest request, EPerson currentUser)
dspaceObject - the object used.request - the current request context.currentUser - the current session's user.void postView(DSpaceObject dspaceObject, javax.servlet.http.HttpServletRequest request, EPerson currentUser)
dspaceObject - the object used.request - the current request context.currentUser - the current session's user.void postView(DSpaceObject dspaceObject, String ip, String userAgent, String xforwardedfor, EPerson currentUser)
void postSearch(DSpaceObject resultObject, javax.servlet.http.HttpServletRequest request, EPerson currentUser, List<String> queries, int rpp, String sortBy, String order, int page, DSpaceObject scope)
void postWorkflow(UsageWorkflowEvent usageWorkflowEvent) throws SQLException
SQLExceptionvoid storeParents(org.apache.solr.common.SolrInputDocument doc1,
DSpaceObject dso)
throws SQLException
doc1 - the current SolrInputDocumentdso - the current dspace object we want to logSQLException - if database error
ignore itboolean isUseProxies()
void removeIndex(String query) throws IOException, org.apache.solr.client.solrj.SolrServerException
query - description of the records to be deleted.IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionvoid markRobotsByIP()
void markRobotByUserAgent(String agent)
void deleteRobotsByIsBotFlag()
void deleteIP(String ip)
void deleteRobotsByIP()
void update(String query, String action, List<String> fieldNames, List<List<Object>> fieldValuesList) throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionvoid update(String query, String action, List<String> fieldNames, List<List<Object>> fieldValuesList, boolean commit) throws org.apache.solr.client.solrj.SolrServerException, IOException
org.apache.solr.client.solrj.SolrServerExceptionIOExceptionvoid query(String query, int max) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionObjectCount[] queryFacetField(String query, String filterQuery, String facetField, int max, boolean showTotal, List<String> facetQueries) throws org.apache.solr.client.solrj.SolrServerException
query - the query to be usedfacetField - the facet field on which to group our valuesmax - the max number of values given back (in case of 10 the top 10
will be given)showTotal - a boolean determining whether the total amount should be given
back as the last element of the arrayorg.apache.solr.client.solrj.SolrServerException - ...ObjectCount[] queryFacetDate(String query, String filterQuery, int max, String dateType, String dateStart, String dateEnd, boolean showTotal, Context context) throws org.apache.solr.client.solrj.SolrServerException
query - the query to be usedmax - the max number of values given back (in case of 10 the top 10
will be given)dateType - the type to be used (example: DAY, MONTH, YEAR)dateStart - the start date Format:(-3, -2, ..) the date is calculated
relatively on todaydateEnd - the end date stop Format (-2, +1, ..) the date is calculated
relatively on todayshowTotal - a boolean determining whether the total amount should be given
back as the last element of the arrayorg.apache.solr.client.solrj.SolrServerException - ...Map<String,Integer> queryFacetQuery(String query, String filterQuery, List<String> facetQueries) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionObjectCount queryTotal(String query, String filterQuery) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionorg.apache.solr.client.solrj.response.QueryResponse query(String query, String filterQuery, String facetField, int rows, int max, String dateType, String dateStart, String dateEnd, List<String> facetQueries, String sort, boolean ascending) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionorg.apache.solr.client.solrj.response.QueryResponse query(String query, String filterQuery, String facetField, int rows, int max, String dateType, String dateStart, String dateEnd, List<String> facetQueries, String sort, boolean ascending, boolean defaultFilterQueries) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionorg.apache.solr.client.solrj.response.QueryResponse query(String query, String filterQuery, String facetField, int rows, int max, String dateType, String dateStart, String dateEnd, List<String> facetQueries, String sort, boolean ascending, boolean defaultFilterQueries, boolean includeShardField) throws org.apache.solr.client.solrj.SolrServerException
org.apache.solr.client.solrj.SolrServerExceptionString getIgnoreSpiderIPs()
void optimizeSOLR()
void shardSolrIndex()
throws IOException,
org.apache.solr.client.solrj.SolrServerException
IOExceptionorg.apache.solr.client.solrj.SolrServerExceptionvoid reindexBitstreamHits(boolean removeDeletedBitstreams)
throws Exception
Exceptionvoid exportHits()
throws Exception
Exception - if errorObject anonymizeIp(String ip) throws UnknownHostException
UnknownHostExceptionCopyright © 2022 LYRASIS. All rights reserved.