0
Answered

How to clear the database of indexed of file contents?

Rudhra 2 years ago updated by Vlad R 2 years ago 1

Using Filerun with Tika and ElasticSearch in Docker, I no longer want to be able to search through contents of files, only through files by filename/metadata.

What command can be used to clear/cleanup the database, removing the indexed file contents from the database? I couldn't find a relevant command here: 

https://docs.filerun.com/command_line_tools

To clear files & paths that no longer exist I use paths_cleanup.php. 

Answer

Answer
Answered

This HTTP request would delete the FileRun index from your ElasticSearch server:

curl -XDELETE 'localhost:9200/files'
Answer
Answered

This HTTP request would delete the FileRun index from your ElasticSearch server:

curl -XDELETE 'localhost:9200/files'