arquivo / pwa-technologies

Arquivo.pt main goal is the preservation and access of web contents that are no longer available online. During the developing of the PWA IR (information retrieval) system we faced limitations in searching speed, quality of results, scalability and usability. To cope with this, we modified the archive-access project (http://archive-access.sourceforge.net/) to support our web archive IR requirements. Nutchwax, Nutch and Wayback’s code were adapted to meet the requirements. Several optimizations were added, such as simplifications in the way document versions are searched and several bottlenecks were resolved. The PWA search engine is a public service at http://archive.pt and a research platform for web archiving. As it predecessor Nutch, it runs over Hadoop clusters for distributed computing following the map-reduce paradigm. Its major features include fast full-text search, URL search, phrase search, faceted search (date, format, site), and sorting by relevance and date. The PWA search engine is highly scalable and its architecture is flexible enough to enable the deployment of different configurations to respond to the different needs. Currently, it serves an archive collection searchable by full-text with 180 million documents ranging between 1996 and 2010.
http://www.arquivo.pt
GNU General Public License v3.0
39 stars 7 forks source link

Block URL requests to textsearch using the q parameter #1368

Open VascoRatoFCCN opened 4 months ago

VascoRatoFCCN commented 4 months ago

Requests to the textsearch API using an URL in the q paramenter are slow to process and can sometimes be a heavy burden to our system. We already provide plenty of alternatives for URL searching: the CDX API, the VersionHistory parameter and the Memento API.

We should identify and block any URL requests on the textsearch API with code 400 - Bad Request, with links to the VersionHistory parameter, the CDX API and the Memento API.

dcgomes commented 3 months ago

@vitgou check if we can implement this blocking in Apache httpd, maybe through mod_qos.