How to use elasticer.py - lmichel/vo-grimoire GitHub Wiki
How to use elasticer.py
This module will allow you to create index on elastic search with all the mails of a repo, execute queries stored in your computer, launch elastic search, delete the index
Methods
- saveMailsToElastic(repo)
- doQuery()
- deleteMails()
- launchElastic()
- returnTimestamp()
Inputs
To save the mails, you will need to put the repository in the saveMailsToElastic parameters
Output
If you save the mails, the result is the creation in elastic search of an index named mails
If you do a query, you will be able to print the result or store it into a JSON.
How to use it
First launch elastic search Then you can create mails index with saveMailsToElastic Then you can do a query And have the results in the mode you want