This project can parse the XML format of the Spanish public contracts and make them searchable.
The contract files can be found here: https://www.hacienda.gob.es/es-ES/GobiernoAbierto/Datos%20Abiertos/Paginas/licitaciones_plataforma_contratacion.aspx
Link with the explanation of the XML format: https://www.hacienda.gob.es/Documentacion/Publico/D.G.%20PATRIMONIO/Plataforma_Contratacion/especificacion-sindicacion-1-3.pdf
Run the project with: docker-compose up
Drop the files into the data
folder.
Index the files with docker-compose exec api npm run index
Download all the zips and index them with docker-compose exec api npm run index-all
Delete the index with docker-compose exec api npm run delete
Search with docker-compose exec api npm run search {query}
Sample search: docker-compose exec api npm run search '{ "query": { "match": { "summary": "covid" } } }'