mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2019-11-15
This commit is contained in:
@ -321,4 +321,44 @@ $ tidy -xml -utf8 -iq -m -w 0 dspace/config/controlled-vocabularies/cg-creator-i
|
||||
- This allows me to detect and purge many more hits from the Solr statistics core
|
||||
- I've tested it quite a bit on DSpace Test, but I need to do a little more before I feel comfortable running the new code on CGSpace's Solr cores
|
||||
|
||||
## 2019-11-15
|
||||
|
||||
- Run the new version of `check-spider-hits.sh` on CGSpace's Solr statistics cores one by one, starting from the oldest just in case something goes wrong
|
||||
- But then I noticed that some (all?) of the hits weren't actually getting purged, all of which were using regular expressions like:
|
||||
- `MetaURI[\+\s]API\/[0-9]\.[0-9]`
|
||||
- `FDM(\s|\+)[0-9]`
|
||||
- `Goldfire(\s|\+)Server`
|
||||
- `^Mozilla\/4\.0\+\(compatible;\)$`
|
||||
- `^Mozilla\/4\.0\+\(compatible;\+ICS\)$`
|
||||
- `^Mozilla\/4\.5\+\[en]\+\(Win98;\+I\)$`
|
||||
- Upon closer inspection, the plus signs seem to be getting misinterpreted somehow in the delete, but not in the select!
|
||||
- Plus signs are special in regular expressions, URLs, and Solr's Lucene query parser, so I'm actually not sure where the issue is
|
||||
- I tried to do URL encoding of the +, double escaping, etc... but nothing worked
|
||||
- I'm going to ignore regular expressions that have pluses for now
|
||||
- I think I might also have to ignore patterns that have percent signs, like `^\%?default\%?$`
|
||||
- After I added the ignores and did some more testing I finally ran the `check-spider-hits.sh` on all CGSpace Solr statistics cores and these are the number of hits purged from each core:
|
||||
- statistics-2010: 113
|
||||
- statistics-2011: 7235
|
||||
- statistics-2012: 0
|
||||
- statistics-2013: 0
|
||||
- statistics-2014: 316
|
||||
- statistics-2015: 16809
|
||||
- statistics-2016: 41732
|
||||
- statistics-2017: 39207
|
||||
- statistics-2018: 295546
|
||||
- statistics: 1043373
|
||||
- That's 1.4 million hits in addition to the 2 million I purged earlier this week...
|
||||
- For posterity, the major contributors to the hits on the statistics core were:
|
||||
- Purging 812429 hits from curl\/ in statistics
|
||||
- Purging 48206 hits from facebookexternalhit\/ in statistics
|
||||
- Purging 72004 hits from PHP\/ in statistics
|
||||
- Purging 76072 hits from Yeti\/[0-9] in statistics
|
||||
- Most of the curl hits were from CIAT in mid-2019, where they were using [GuzzleHttp](https://guzzle3.readthedocs.io/http-client/client.html) from PHP, which uses something like this for its user agent:
|
||||
|
||||
```
|
||||
Guzzle/<Guzzle_Version> curl/<curl_version> PHP/<PHP_VERSION>
|
||||
```
|
||||
|
||||
- Run system updates on DSpace Test and reboot the server
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user