Difference between revisions of "SUNScholar/Statistics/3.X"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
nano /home/dspace/source/dspace/config/modules/solr-statistics.cfg | nano /home/dspace/source/dspace/config/modules/solr-statistics.cfg | ||
Remove the port 8080 reference, see example below. | Remove the port 8080 reference, see example below. | ||
| + | <pre> | ||
| + | #---------------------------------------------------------------# | ||
| + | #--------------SOLR STATISTICS CONFIGURATIONS-------------------# | ||
| + | #---------------------------------------------------------------# | ||
| + | # These configs are only used by the SOLR interface/webapp to # | ||
| + | # track usage statistics. # | ||
| + | #---------------------------------------------------------------# | ||
| + | ##### Usage Logging ##### | ||
| + | # set this to be the port you run the dspace "solr" webapp | ||
| + | # on, by default, we are assuming a test configuration with | ||
| + | # tomcat still running on port 8080 | ||
| + | server = http://localhost/solr/statistics | ||
| + | |||
| + | # A comma-separated list that contains the bundles for which the bitstreams will be displayed | ||
| + | query.filter.bundles=ORIGINAL | ||
| + | |||
| + | # control solr statistics querying to filter out spider IPs | ||
| + | # false by default | ||
| + | #query.filter.spiderIp = false | ||
| + | |||
| + | # control solr statistics querying to look at "isBot" field to determine | ||
| + | # if record is a bot. true by default. | ||
| + | #query.filter.isBot = true | ||
| + | |||
| + | # URLs to download IP addresses of search engine spiders from | ||
| + | spiderips.urls = http://iplists.com/google.txt, \ | ||
| + | http://iplists.com/inktomi.txt, \ | ||
| + | http://iplists.com/lycos.txt, \ | ||
| + | http://iplists.com/infoseek.txt, \ | ||
| + | http://iplists.com/altavista.txt, \ | ||
| + | http://iplists.com/excite.txt, \ | ||
| + | http://iplists.com/misc.txt, \ | ||
| + | http://iplists.com/non_engines.txt | ||
| + | </pre> | ||
==References== | ==References== | ||
Revision as of 09:04, 10 December 2013
Step 1 - Setup config file
Edit the following file:
nano /home/dspace/source/dspace/config/modules/solr-statistics.cfg
Remove the port 8080 reference, see example below.
#---------------------------------------------------------------#
#--------------SOLR STATISTICS CONFIGURATIONS-------------------#
#---------------------------------------------------------------#
# These configs are only used by the SOLR interface/webapp to #
# track usage statistics. #
#---------------------------------------------------------------#
##### Usage Logging #####
# set this to be the port you run the dspace "solr" webapp
# on, by default, we are assuming a test configuration with
# tomcat still running on port 8080
server = http://localhost/solr/statistics
# A comma-separated list that contains the bundles for which the bitstreams will be displayed
query.filter.bundles=ORIGINAL
# control solr statistics querying to filter out spider IPs
# false by default
#query.filter.spiderIp = false
# control solr statistics querying to look at "isBot" field to determine
# if record is a bot. true by default.
#query.filter.isBot = true
# URLs to download IP addresses of search engine spiders from
spiderips.urls = http://iplists.com/google.txt, \
http://iplists.com/inktomi.txt, \
http://iplists.com/lycos.txt, \
http://iplists.com/infoseek.txt, \
http://iplists.com/altavista.txt, \
http://iplists.com/excite.txt, \
http://iplists.com/misc.txt, \
http://iplists.com/non_engines.txt
References
- https://wiki.duraspace.org/display/DSDOC3x/DSpace+Statistics
- https://wiki.duraspace.org/display/DSDOC3x/Managing+Usage+Statistics
Back to SOLR Statistics