<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>The one on the Wiki is mine...which I'm using now.  So it
      certainly does work - but perhaps there's a setting you have
      differently from me.</p>
    <p>Performing a "create -c dovecot" creates a Solr instance *named*
      dovecot - that does *not* initialize it with the necessary
      schema.  You need to specify "-d dovecot", with a dovecot
      configset already setup, to do that.</p>
    <p>The other choice is to create the instance as you show, ensure
      Solr is stopped, delete the "<prefix>/solr/dovecot/data"
      folder, and copy the managed-schema file to
      "<prefix>/solr/dovecot/conf".  Again, the filename saved in
      the /conf folder needs to be "managed-schema" - no ".xml" suffix.</p>
    <p>If that doesn't work for you - please share the errors.<br>
    </p>
    <pre class="moz-signature" cols="72">Daniel

</pre>
    <div class="moz-cite-prefix">On 12/10/2018 11:40 AM, Joan Moreau
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:bcb1055964a5dff766be1be053d5a5c5@grosjo.net">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Hi Daniel,</p>
      <p>THere is no need of all this, just the command (on Solr 7.5)
        "create -c dovecot " is enough</p>
      <p>The chema.xml provided on the wiki basically does not work on
        7.5</p>
      <p><br>
      </p>
      <p>Here the latest one I am working on , but nothing works
        properly (bad search results, errors in ftp_solr, etc..)</p>
      <p><br>
      </p>
      <p><?xml version="1.0" encoding="UTF-8"?><br>
        <schema name="dovecot" version="2.0"><br>
        <uniqueKey>id</uniqueKey><br>
        <types><br>
        <fieldType name="string" class="solr.StrField" /><br>
        <fieldType name="long" class="solr.LongPointField"
        positionIncrementGap="0" /><br>
        <fieldType name="text" class="solr.TextField"
        autoGeneratePhraseQueries="true" positionIncrementGap="100"><br>
        <analyzer type="index"><br>
        <tokenizer class="solr.StandardTokenizerFactory"/><br>
        <filter class="solr.StopFilterFactory" words="stopwords.txt"
        ignoreCase="true"/><br>
        <filter class="solr.WordDelimiterGraphFilterFactory"
        generateWordParts="1" generateNumberParts="1"
        splitOnCaseChange="1" splitOnNumerics="1" catenateWords="1"
        catenateNumbers="1" catenateAll="1"/><br>
        <filter class="solr.FlattenGraphFilterFactory"/> <!--
        required on index analyzers after graph filters --><br>
        <filter class="solr.LowerCaseFilterFactory"/><br>
        <filter class="solr.NGramFilterFactory" minGramSize="3"
        maxGramSize="15" /><br>
        <filter class="solr.KeywordMarkerFilterFactory"
        protected="protwords.txt"/><br>
        <filter class="solr.PorterStemFilterFactory"/><br>
        </analyzer><br>
        <analyzer type="query"><br>
        <tokenizer class="solr.StandardTokenizerFactory"/><br>
        <filter class="solr.SynonymGraphFilterFactory" expand="true"
        ignoreCase="true" synonyms="synonyms.txt"/><br>
        <filter class="solr.FlattenGraphFilterFactory"/> <!--
        required on index analyzers after graph filters --><br>
        <filter class="solr.StopFilterFactory" words="stopwords.txt"
        ignoreCase="true"/><br>
        <filter class="solr.WordDelimiterGraphFilterFactory"
        generateWordParts="1" generateNumberParts="1"
        splitOnCaseChange="1" splitOnNumerics="1" catenateWords="1"
        catenateNumbers="1" catenateAll="1"/><br>
        <filter class="solr.LowerCaseFilterFactory"/><br>
        <filter class="solr.NGramFilterFactory" minGramSize="3"
        maxGramSize="15" /><br>
        <filter class="solr.KeywordMarkerFilterFactory"
        protected="protwords.txt"/><br>
        <filter class="solr.PorterStemFilterFactory"/><br>
        </analyzer><br>
        </fieldType><br>
        </types><br>
        <fields><br>
        <field name="_version_" type="long" indexed="true"
        stored="true"/><br>
        <field name="bcc" type="text" indexed="true"
        stored="false"/><br>
        <field name="body" type="text" indexed="true"
        stored="false"/><br>
        <field name="box" type="string" indexed="false"
        required="true" stored="true"/><br>
        <field name="hdr" type="text" indexed="true"
        stored="false"/><br>
        <field name="cc" type="text" indexed="true"
        stored="false"/><br>
        <field name="from" type="text" indexed="true"
        stored="false"/><br>
        <field name="id" type="string" indexed="true" required="true"
        stored="true"/><br>
        <field name="subject" type="text" indexed="true"
        stored="false"/><br>
        <field name="to" type="text" indexed="true"
        stored="false"/><br>
        <field name="uid" type="long" indexed="true" required="true"
        stored="true"/><br>
        <field name="user" type="string" indexed="true"
        required="true" stored="true"/><br>
        </fields><br>
        </schema></p>
      <p><br>
      </p>
      <div id="signature"> </div>
      <p><br>
      </p>
      <p id="reply-intro">On 2018-12-10 21:17, Daniel Miller via dovecot
        wrote:</p>
      <blockquote type="cite" style="padding: 0 0.4em; border-left:
        #1010ff 2px solid; margin: 0"><!-- html ignored -->
        <!-- head ignored --><!-- meta ignored --> On 12/4/2018 10:40
        AM, Joan Moreau via dovecot wrote:<br>
        <blockquote type="cite" style="padding: 0 0.4em; border-left:
          #1010ff 2px solid; margin: 0">
          <p>In the Wiki, ( <a
              href="https://wiki.dovecot.org/Plugins/FTS/Solr"
              target="_blank" rel="noopener noreferrer"
              moz-do-not-send="true">https://wiki.dovecot.org/Plugins/FTS/Solr</a>
            ), it would nice to stipulate to the reader  to type the
            command :</p>
          <p>sudo -u solr /opt/solr/bin/solr create -c dovecot # to
            create the dovecot instance</p>
          <p>before updating the schema.xml .</p>
          <p>Also,  schema.xml is in /opt/solr/server/solr/dovecot/conf
            for archlinux users</p>
          <p>Additionaly, the url is <a href="http://(solr"
              target="_blank" rel="noopener noreferrer"
              moz-do-not-send="true">http://(solr_</a>server):8983/solr/dovecot/
            (error in wiki)</p>
          <div id="signature"> </div>
        </blockquote>
        <p>After installing Solr, wherever the installation sets up
          there should a folder similar to:</p>
        <p><your prefix>/solr/server/solr/configsets</p>
        <p>If you look there, you'll probably see folders like
          '_default' and 'sample_techproducts_configs'.  I haven't
          played with the 'techproducts' sample.  Copy the '_default'
          folder, with all its contents, to a 'dovecot' folder.  In the
          new dovecot folder, replace the 'managed-schema' file with the
          file from the Dovecot Wiki</p>
        <p><a class="moz-txt-link-freetext"
href="https://wiki.dovecot.org/Plugins/FTS/Solr?action=AttachFile&do=view&target=solr-7.x-schema.xml"
            target="_blank" rel="noopener noreferrer"
            moz-do-not-send="true">https://wiki.dovecot.org/Plugins/FTS/Solr?action=AttachFile&do=view&target=solr-7.x-schema.xml</a></p>
        <p>after that, you should be able to run 'solr
          /opt/solr/bin/solr create -c dovecot' to create the instance. 
          If things still don't work let us know.</p>
        <p>The schema is one I've tweaked and updated during my own
          migrations since Solr 3.3.  It's possible there's something
          else in my config that needs documenting - but having
          experienced Solr search against my mailstore I never want to
          be without it.</p>
        <pre class="moz-signature">Daniel

</pre>
      </blockquote>
    </blockquote>
  </body>
</html>