<commit_before>ElasticSearch Indexer for CENDARI
=================================

Provide a Facade oject fr.inria.aviz.elasticindexer.Indexer to perform several operations:
- use an extended version of Tika to parse files and return textual contents plus metadata. The result has type DocumentInfo.
- index the data in DocumentInfo by sending to to elasticsearch
- search for documents in elasticsearch
- create the mapping (Schema) in elasticsearch if needed.

To create a specific parser for a new XML schema, do the following steps:
1. Create a Parser class, just like fr.inria.aviz.elasticindexer.tika.xml.TEIParser
2. Declare the new class in (at the end of) src/main/resources/org/apache/tika/META-INF/services/org.apache.tika.parser.Parser
3. Optionally add an XSLT transform in src/main/resources/fr/inria/aviz/elasticindexer/tika/xml/ to cleanup the XML file. See TEIParser.xsl for an example.
4. Add a test case in src/test/java/fr/inria/aviz/elasticindex/TextTika 
<commit_msg>fix markdown<commit_after>ElasticSearch Indexer for CENDARI
=================================

Provide a Facade oject fr.inria.aviz.elasticindexer.Indexer to perform several operations:
- use an extended version of Tika to parse files and return textual contents plus metadata. The result has type DocumentInfo.
- index the data in DocumentInfo by sending to to elasticsearch
- search for documents in elasticsearch
- create the mapping (Schema) in elasticsearch if needed.

To create a specific parser for a new XML schema, do the following steps:
1.  Create a Parser class, just like fr.inria.aviz.elasticindexer.tika.xml.TEIParser
2.  Declare the new class in (at the end of) src/main/resources/org/apache/tika/META-INF/services/org.apache.tika.parser.Parser
3.  Optionally add an XSLT transform in src/main/resources/fr/inria/aviz/elasticindexer/tika/xml/ to cleanup the XML file. See TEIParser.xsl for an example.
4.  Add a test case in src/test/java/fr/inria/aviz/elasticindex/TextTika 

{'fraction_non_alphanumeric': 0.0978315683308119, 'fraction_numerical': 0.004034291477559254, 'mean_word_length': 4.573033707865169, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2289683', 'n_tokens_mistral': 599, 'n_tokens_neox': 575, 'n_words': 229}