<?xml version="1.0" encoding="UTF-8"?>
<schema name="dovecot" version="2.4">
  <uniqueKey>id</uniqueKey>
  <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
  <fieldType name="long" class="solr.LongPointField" positionIncrementGap="0"/>
  <fieldType name="string" class="solr.StrField" omitNorms="true" sortMissingLast="true"/>
  <fieldType name="text" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100">
    <analyzer type="index">
      <tokenizer name="standard" />
      <filter name="icuFolding" />
      <filter name="wordDelimiterGraph" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
      <filter name="flattenGraph"/>
      <filter name="keywordMarker" protected="protwords.txt"/>
      <filter name="porterStem"/>
    </analyzer>
    <analyzer type="query">
      <tokenizer name="standard" />
      <filter name="icuFolding" />
      <filter name="synonymGraph" expand="true" ignoreCase="true" synonyms="synonyms.txt"/>
      <filter name="flattenGraph" />
      <filter name="wordDelimiterGraph" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
      <filter name="keywordMarker" protected="protwords.txt"/>
      <filter name="porterStem" />
    </analyzer>
  </fieldType>
  <field name="_version_" type="long" indexed="true" stored="true"/>
  <field name="bcc" type="text" indexed="true" stored="false"/>
  <field name="body" type="text" indexed="true" stored="false"/>
  <field name="box" type="string" indexed="true" required="true" stored="true"/>
  <field name="cc" type="text" indexed="true" stored="false"/>
  <field name="from" type="text" indexed="true" stored="false"/>
  <field name="hdr" type="text" indexed="true" stored="false"/>
  <field name="id" type="string" indexed="true" required="true" stored="true"/>
  <field name="subject" type="text" indexed="true" stored="false"/>
  <field name="to" type="text" indexed="true" stored="false"/>
  <field name="uid" type="long" indexed="true" required="true" stored="true"/>
  <field name="user" type="string" indexed="true" required="true" stored="true"/>
</schema>
