<div id="main-content" class="wiki-content group">
<p> </p>
<p>
In environments where a <em>cluster</em> will be used, or when the
amount of documents is considerably large, it is advisable to use an
exclusive server for indexation.
</p>
<p>The installation and setting instructions can be found below:</p>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-Consideraçõesiniciais">Initial
considerations</h1>
<ul>
<li>All instances should have access to the same shared folder,
where the file system repository is. In this repository, a research
index is created and the indexation server must have the same path
for this folder as the fluig server.</span>
</li>
</ul>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-Preparandoambiente">Preparing
the environment</h1>
<p>
<span style="font-size: 10.0pt; line-height: 13.0pt;">Before
starting the installation, follow the steps below:</span>
</p>
<ol>
<li>Install the <strong>Fluig Server</strong> normally and move
the <em>foundation-addon-indexer-web.war</em> file, found in the
directory <em><Installation directory>/jboss/apps</em> to a
temporary directory.<br />
<br /></li>
<li>If you have more instances of the <strong>Fluig
Server</strong>, exclude the  <em>foundation-addon-indexer-web.war</em>
file from these instances, leaving only a single copy which will go
to the server at<strong> Fluig Indexer</strong>.<br />
<br /></li>
<li>Download <em><a
href="http://tdn.totvs.com/download/attachments/146182053/146118296.zip185741467/FluigIndexer-1.3.zip?version=1&modificationDate=1426097772000&api=v2">FluigIndexer-1.3.zip</a></em>.
</li>
</ol>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-InstalandooFluigIndexerServer">Installing
the Fluig Indexer Server</h1>
<ol>
<li>Unzip the file <em>FluigIndexer-1.3.zip</em> to a directory
in the indexation server. <em>Ex: c:\FluigIndexer</em><br />
<em><br /></em></li>
<li>Move the <em>foundation-addon-indexer-web.war</em> file to
the directory <em><FluigIndexer>/webapps</em><br />
<em><br /></em></li>
<li>If the server where the indexation service was installed does
not have Java installed, copy the jdk-64 directory from your Fluig
Server installation.</li>
</ol>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-ConfigurandooFluigIndexerServer">Configuring
the Fluig Indexer Server</h1>
<p> </p>
<h5
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-DefinindooIPdoServidordeIndexação">
Defining the Indexation Server IP<br />
<br />
</h5>
<ul>
<li style="list-style-type: none;"><ul>
<li><p>
Open the file <em><fluigIndexer>/solr/solr.xml and l</em>ocate
the following line, changing the server IP:
</p>
<div class="code panel pdl" style="border-width: 1px;">
<div class="codeContent panelContent pdl">
<pre class="theme: Confluence; brush: html/xml; gutter: false"
style="font-size: 12px;"><cores defaultCoreName="collection1" adminPath="/admin/cores" zkClientTimeout="${zkClientTimeout:15000}" hostPort="8080" hostContext="indexer" host="127.0.0.1"></pre>
</div>
</div></li>
</ul></li>
</ul>
<h5
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-(Opcional)Alteraçãodaporta(Default:8983)">(Optional)
Port change (Default: 8983)</h5>
<p> </p>
<ul>
<li style="list-style-type: none;"><ul>
<li><p>
Open the file <em><fluigIndexer>/etc/jetty.xml </em>and
l<span>ocate the following line, changing the port value to
one that is not being used:</span>
</p>
<div class="code panel pdl" style="border-width: 1px;">
<div class="codeContent panelContent pdl">
<pre class="theme: Confluence; brush: html/xml; gutter: false"
style="font-size: 12px;"><Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set></pre>
</div>
</div></li>
</ul></li>
</ul>
<div>
<p> </p>
</div>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-ConfigurandooFluigServerparausaroFluigIndexer">Configuring
the Fluig Server to use the Fluig Indexer</h1>
<p>
On the server where the <strong>Fluig Server</strong> is installed,
access the directory <em><span
style="font-size: 10.0pt; line-height: 13.0pt;"><fluig-server>/jboss/standalone/configuration</span></em>
</p>
<p> </p>
<p>
And edit the file <em>standalone.xml</em> and locate the following
line:
</p>
<div class="code panel pdl" style="border-width: 1px;">
<div class="codeContent panelContent pdl">
<pre class="theme: Confluence; brush: html/xml; gutter: false"
style="font-size: 12px;"><property name="totvs/solrURL" value="http://server:8080/indexer"/></pre>
</div>
</div>
<p> </p>
<p>
Change it to <em> <IP>:<Port></em> where the<strong>
Fluig Indexer</strong> is running. The IP or HostName of the server where the
indexation service is installed must be informed.
</p>
<div class="code panel pdl" style="border-width: 1px;">
<div class="codeContent panelContent pdl">
<pre class="theme: Confluence; brush: html/xml; gutter: false"
style="font-size: 12px;"><property name="totvs/solrURL" value="http://<Fluig Indexer Host>:<Fluig Indexer Port>/indexer"/></pre>
</div>
</div>
<pre> </pre>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-ExecutandooFluigIndexer">Executing
the Fluig Indexer</h1>
<p>You only need to run the file run.bat or run.sh for the process
to start. Ctrl-C makes the process end.</p>
<p>
<strong>Note:</strong> It is important that the Fluig Indexer is
started before Fluig, otherwise, it will consider that there is no
Indexation Service available.
</p>
<h1
id="ConfigurandoFluigIndexerparaexecutaremservidorseparado-AtualizandooFluigIndexer">Updating
the Fluig Indexer</h1>
<p>
Whenever there is an update for <strong>Fluig Server</strong>, the <em> foundation-addon-indexer-web.war</em>
file must be moved to the webapps directory in<strong> Fluig
Indexer</strong>. If there are several instances of <strong>Fluig
Server</strong>, this file must be removed from all of them.
</p>
<p> </p>
<p> </p>
</div>
|