Hello everyone,
I am working on a project called University Repository. In this project users upload the document in .pdf .ppt format and the document gets stored in Mongodb. I am able to display all files present in DB to webpage. Now, for the next part I want to add ES search box to my website. How do I do that. Any guidance will really be appreciated. Thanks.
PS: I am using HTML/CSS, JavaScript for frontend and PHP,MongoDB for backend.
You need to create a JSON document which contains the title, author, date and send it to elasticsearch.
If you want to be able to search for the content, you can provide the binary file as a BASE64 field and use ingest-attachment plugin to extract content and other metadata.
You can also use FSCrawler project with its new REST service and upload your file to FSCrawler which will generate a JSON and send it to elasticsearch.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.