<commit_before><component name="org.nuxeo.ecm.core.search.service.defaultconfig">
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="indexableDocType">
    <indexableDocType indexAllSchemas="true" name="Root" />
    <indexableDocType indexAllSchemas="true" name="Domain" />
    <indexableDocType indexAllSchemas="true" name="WorkspaceRoot" />
    <indexableDocType indexAllSchemas="true" name="SectionRoot" />
    <indexableDocType indexAllSchemas="true" name="TemplateRoot" />
    <indexableDocType indexAllSchemas="true" name="Section" />
    <indexableDocType indexAllSchemas="true" name="Workspace" />
    <indexableDocType indexAllSchemas="true" name="Folder" />
    <indexableDocType indexAllSchemas="true" name="File" />
    <indexableDocType indexAllSchemas="true" name="Note" />
    <indexableDocType indexAllSchemas="true" name="Forum" />
    <indexableDocType indexAllSchemas="true" name="Thread" />
    <indexableDocType indexAllSchemas="true" name="Picture" />
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="resource">
    <resource name="note" prefix="note" type="schema"
      indexAllFields="true">
      <field name="note" analyzer="default" stored="false"
        indexed="true" type="Text" binary="false" />
    </resource>
    <resource name="dublincore" prefix="dc" indexAllFields="true"
      type="schema">
      <field name="title" analyzer="default" stored="true"
        indexed="true" type="Text" binary="false" sortable="true"
        sortOption="case-insensitive"/>
        <field name="coverage" stored="true" indexed="true" sortable="false"
        type="Path"/>
        <field name="subjects" stored="true" indexed="true" sortable="false"
        type="Path" multiple="true"/>
      </resource>
    <resource name="common" prefix="common" indexAllFields="true"
      type="schema">
      <field name="size" stored="true" indexed="true" type="int" />
    </resource>
    <resource name="ecm" prefix="ecm" indexAllFields="true"
      type="documentBuiltins">
      <field name="id" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="qid" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="uuid" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="name" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="parentId" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="primaryType" analyzer="keyword" stored="true"
        indexed="true" sortable="true" type="keyword">
      </field>
      <field name="path" stored="true" indexed="true" sortable="false"
        type="Path">
      </field>
      <field name="url" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="currentLifeCycleState" analyzer="keyword"
        stored="true" indexed="true" sortable="false" type="keyword">
      </field>
      <field name="versionLabel" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="isCheckedInVersion" analyzer="boolean" stored="true"
        indexed="true" sortable="false" type="boolean">
      </field>
      <field name="isProxy" analyzer="boolean" stored="true"
        indexed="true" sortable="false" type="boolean">
      </field>
      <field name="repositoryName" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="mixinType" analyzer="default" stored="true"
        indexed="true" type="keyword" binary="false" multiple="true" />
      <field name="flags" analyzer="default" stored="true"
        indexed="false" type="keyword" binary="false" multiple="false" />
    </resource>
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="fullTextField">
    <fullText name="ecm:fulltext" analyzer="default"
      blobExtractorName="nuxeoTransform">
      <field>dublincore:title</field>
      <field>dublincore:description</field>
      <field>file:content</field>
      <field>note:note</field>
      <mimetype name="application/pdf">pdf2text</mimetype>
      <mimetype name="application/msword">word2text_poi</mimetype>
      <mimetype name="application/vnd.ms-powerpoint">ppt2text_poi</mimetype>
      <mimetype name="application/vnd.ms-excel">xl2text_jr</mimetype>
      <mimetype name="text/xml">xml2text_jr</mimetype>
      <mimetype name="text/html">html2text_jr</mimetype>
      <mimetype name="application/vnd.sun.xml.writer">oo2text_jr</mimetype>
      <mimetype name="application/vnd.sun.xml.writer.template">oo2text_jr</mimetype>
      <mimetype name="application/vnd.oasis.opendocument.text">oo2text_jr</mimetype>
      <mimetype name="application/vnd.oasis.opendocument.text-template">oo2text_jr</mimetype>
      <mimetype name=".*/.*">any2text</mimetype>
    </fullText>
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="indexingEvent">
    <indexingEvent name="documentCreated" action="Index" />
    <indexingEvent name="documentModified" action="ReIndex" />
    <indexingEvent name="documentPublished" action="ReIndex" />
    <indexingEvent name="documentProxyPublished" action="Index" />
    <indexingEvent name="documentCreatedByCopy" action="Index"
      recursive="true" />
    <indexingEvent name="documentCheckedIn" action="Index" />
    <indexingEvent name="documentMoved" action="Index"<commit_msg>NXP-2283 : Document is reindexed after restoring a version<commit_after><component name="org.nuxeo.ecm.core.search.service.defaultconfig">
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="indexableDocType">
    <indexableDocType indexAllSchemas="true" name="Root" />
    <indexableDocType indexAllSchemas="true" name="Domain" />
    <indexableDocType indexAllSchemas="true" name="WorkspaceRoot" />
    <indexableDocType indexAllSchemas="true" name="SectionRoot" />
    <indexableDocType indexAllSchemas="true" name="TemplateRoot" />
    <indexableDocType indexAllSchemas="true" name="Section" />
    <indexableDocType indexAllSchemas="true" name="Workspace" />
    <indexableDocType indexAllSchemas="true" name="Folder" />
    <indexableDocType indexAllSchemas="true" name="File" />
    <indexableDocType indexAllSchemas="true" name="Note" />
    <indexableDocType indexAllSchemas="true" name="Forum" />
    <indexableDocType indexAllSchemas="true" name="Thread" />
    <indexableDocType indexAllSchemas="true" name="Picture" />
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="resource">
    <resource name="note" prefix="note" type="schema"
      indexAllFields="true">
      <field name="note" analyzer="default" stored="false"
        indexed="true" type="Text" binary="false" />
    </resource>
    <resource name="dublincore" prefix="dc" indexAllFields="true"
      type="schema">
      <field name="title" analyzer="default" stored="true"
        indexed="true" type="Text" binary="false" sortable="true"
        sortOption="case-insensitive"/>
        <field name="coverage" stored="true" indexed="true" sortable="false"
        type="Path"/>
        <field name="subjects" stored="true" indexed="true" sortable="false"
        type="Path" multiple="true"/>
      </resource>
    <resource name="common" prefix="common" indexAllFields="true"
      type="schema">
      <field name="size" stored="true" indexed="true" type="int" />
    </resource>
    <resource name="ecm" prefix="ecm" indexAllFields="true"
      type="documentBuiltins">
      <field name="id" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="qid" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="uuid" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="name" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="parentId" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="primaryType" analyzer="keyword" stored="true"
        indexed="true" sortable="true" type="keyword">
      </field>
      <field name="path" stored="true" indexed="true" sortable="false"
        type="Path">
      </field>
      <field name="url" analyzer="keyword" stored="true" indexed="true"
        sortable="false" type="keyword">
      </field>
      <field name="currentLifeCycleState" analyzer="keyword"
        stored="true" indexed="true" sortable="false" type="keyword">
      </field>
      <field name="versionLabel" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="isCheckedInVersion" analyzer="boolean" stored="true"
        indexed="true" sortable="false" type="boolean">
      </field>
      <field name="isProxy" analyzer="boolean" stored="true"
        indexed="true" sortable="false" type="boolean">
      </field>
      <field name="repositoryName" analyzer="keyword" stored="true"
        indexed="true" sortable="false" type="keyword">
      </field>
      <field name="mixinType" analyzer="default" stored="true"
        indexed="true" type="keyword" binary="false" multiple="true" />
      <field name="flags" analyzer="default" stored="true"
        indexed="false" type="keyword" binary="false" multiple="false" />
    </resource>
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="fullTextField">
    <fullText name="ecm:fulltext" analyzer="default"
      blobExtractorName="nuxeoTransform">
      <field>dublincore:title</field>
      <field>dublincore:description</field>
      <field>file:content</field>
      <field>note:note</field>
      <mimetype name="application/pdf">pdf2text</mimetype>
      <mimetype name="application/msword">word2text_poi</mimetype>
      <mimetype name="application/vnd.ms-powerpoint">ppt2text_poi</mimetype>
      <mimetype name="application/vnd.ms-excel">xl2text_jr</mimetype>
      <mimetype name="text/xml">xml2text_jr</mimetype>
      <mimetype name="text/html">html2text_jr</mimetype>
      <mimetype name="application/vnd.sun.xml.writer">oo2text_jr</mimetype>
      <mimetype name="application/vnd.sun.xml.writer.template">oo2text_jr</mimetype>
      <mimetype name="application/vnd.oasis.opendocument.text">oo2text_jr</mimetype>
      <mimetype name="application/vnd.oasis.opendocument.text-template">oo2text_jr</mimetype>
      <mimetype name=".*/.*">any2text</mimetype>
    </fullText>
  </extension>
  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="indexingEvent">
    <indexingEvent name="documentCreated" action="Index" />
    <indexingEvent name="documentModified" action="ReIndex" />
    <indexingEvent name="documentPublished" action="ReIndex" />
    <indexingEvent name="documentRestored" action="ReIndex" />
    <indexingEvent name="documentProxyPublished" action="Index" />
    <indexingEvent name="documentCreatedByCopy" action="Index"
      recursive="true" />
    <indexingEvent name="documentCheckedIn" action="Index" />
    <indexingEvent name="documentMoved" action="Index"
{'fraction_non_alphanumeric': 0.1600034025178632, 'fraction_numerical': 0.0022116366110922084, 'mean_word_length': 4.35626423690205, 'pattern_counts': {'":': 0, '<': 206, '<?xml version=': 0, '>': 204, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2563871', 'n_tokens_mistral': 3671, 'n_tokens_neox': 3588, 'n_words': 581}