Data Ingestor is a project designed to facilitate file uploads for data processing and querying using Apache Solr. The project provides an interface to upload, query, retrieve, and delete data.
- Upload Data - Securely upload your data files for processing.
- Query Interface - Utilize the power of Apache Solr to run complex queries.
- Delete Data (Debug feature) - Clear all data. (This feature is only for debugging and not recommended for production)
(Note: The following API endpoint usages are based on the API class provided.)
To upload a file: Use the following command: curl http://localhost:8080/api/data -F "file={File path}" curl http://localhost:8080/api/data -F "file=@{File path is local}"
Example: curl http://localhost:8080/api/data -F "file=@product_feed_copy.csv"
To query for specific data: curl "http://localhost:8080/api/data?q={query}"
Example: curl "http://localhost:8080/api/data?q=ProductID:30103472"
To retrieve all data: curl "http://localhost:8080/api/data/"
(Debug feature - Not recommended for production) curl -X DELETE http://localhost:8080/api/data/