solr-schema-7.7.0.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema name="dovecot-fts" version="2.0">
  3. <fieldType name="string" class="solr.StrField" omitNorms="true" sortMissingLast="true"/>
  4. <fieldType name="long" class="solr.LongPointField" positionIncrementGap="0"/>
  5. <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
  6. <fieldType name="text" class="solr.TextField" autoGeneratePhraseQueries="true" positionIncrementGap="100">
  7. <analyzer type="index">
  8. <tokenizer class="solr.StandardTokenizerFactory"/>
  9. <filter class="solr.EdgeNGramFilterFactory" minGramSize="3" maxGramSize="20"/>
  10. <filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
  11. <filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
  12. <filter class="solr.FlattenGraphFilterFactory"/>
  13. <filter class="solr.LowerCaseFilterFactory"/>
  14. <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  15. <filter class="solr.PorterStemFilterFactory"/>
  16. </analyzer>
  17. <analyzer type="query">
  18. <tokenizer class="solr.StandardTokenizerFactory"/>
  19. <filter class="solr.SynonymGraphFilterFactory" expand="true" ignoreCase="true" synonyms="synonyms.txt"/>
  20. <filter class="solr.FlattenGraphFilterFactory"/>
  21. <filter class="solr.StopFilterFactory" words="stopwords.txt" ignoreCase="true"/>
  22. <filter class="solr.WordDelimiterGraphFilterFactory" catenateNumbers="1" generateNumberParts="1" splitOnCaseChange="1" generateWordParts="1" splitOnNumerics="1" catenateAll="1" catenateWords="1"/>
  23. <filter class="solr.LowerCaseFilterFactory"/>
  24. <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  25. <filter class="solr.PorterStemFilterFactory"/>
  26. </analyzer>
  27. </fieldType>
  28. <field name="id" type="string" indexed="true" required="true" stored="true"/>
  29. <field name="uid" type="long" indexed="true" required="true" stored="true"/>
  30. <field name="box" type="string" indexed="true" required="true" stored="true"/>
  31. <field name="user" type="string" indexed="true" required="true" stored="true"/>
  32. <field name="hdr" type="text" indexed="true" stored="false"/>
  33. <field name="body" type="text" indexed="true" stored="false"/>
  34. <field name="from" type="text" indexed="true" stored="false"/>
  35. <field name="to" type="text" indexed="true" stored="false"/>
  36. <field name="cc" type="text" indexed="true" stored="false"/>
  37. <field name="bcc" type="text" indexed="true" stored="false"/>
  38. <field name="subject" type="text" indexed="true" stored="false"/>
  39. <!-- Used by Solr internally: -->
  40. <field name="_version_" type="long" indexed="true" stored="true"/>
  41. <uniqueKey>id</uniqueKey>
  42. </schema>