Solr

Joan Moreau
2019-01-02T07:22:04Z

Refinement of the schema.xml (below)

THis however does not solve the "no results" and "Out of
range" errors
in Dovecot and Solr

<?xml version="1.0" encoding="UTF-8"?>
<schema name="dovecot" version="2.0">
<uniqueKey>id</uniqueKey>
<fieldType name="booleans" class="solr.BoolField"
sortMissingLast="true"
multiValued="true"/>
<fieldType name="gjlong" class="solr.LongPointField"
positionIncrementGap="0"/>
<fieldType name="gjtext" class="solr.TextField"
autoGeneratePhraseQueries="true"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.WordDelimiterGraphFilterFactory"
catenateNumbers="1"
generateNumberParts="1" splitOnCaseChange="1"
generateWordParts="1"
splitOnNumerics="1" catenateAll="1"
catenateWords="1"
preserveOriginal="1"/>
<filter class="solr.FlattenGraphFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
</fieldType>
<fieldType name="gjfield" class="solr.TextField"
autoGeneratePhraseQueries="true">
<analyzer type="index">
<tokenizer class="solr.NGramTokenizerFactory"
maxGramSize="25"
minGramSize="3" />
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
<analyzer type="query">
<tokenizer class="solr.KeywordTokenizerFactory"/>
</analyzer>
</fieldType>

<fieldType name="string" class="solr.StrField"/>
<field name="_version_" type="string"
indexed="true" stored="true"/>
<field name="bcc" type="string" indexed="false"
stored="false"/>
<field name="body" type="gjtext" indexed="true"
stored="false"/>
<field name="box" type="string" indexed="true"
required="true"
stored="true"/>
<field name="cc" type="gjfield" indexed="true"
stored="false"/>
<field name="from" type="gjfield"
indexed="true" stored="false"/>
<field name="hdr" type="string" indexed="false"
stored="false"/>
<field name="id" type="string" indexed="true"
required="true"
stored="true"/>
<field name="subject" type="gjtext"
indexed="true" stored="false"/>
<field name="to" type="gjfield" indexed="true"
stored="false"/>
<field name="uid" type="string" indexed="true"
required="true"
stored="true"/>
<field name="user" type="string" indexed="true"
required="true"
stored="true"/>
</schema>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://dovecot.org/pipermail/dovecot/attachments/20190102/a72ad4ae/attachment-0001.html>