- to prevent unwanted exposure of index entries about private
local/intranet documents when switching from "Intranet Indexing" mode
while attached to remote Solr instance(s)
- to warn user about remote Solr instance(s) still attached when
switching from modes other than "Intranet Indexing"
<imgsrc="env/grafics/ok.png"height="16"width="16"alt="ok"/> Use Case: what do you want to do with YaCy:<br/>
<fieldset>
#(switchError)#::<divclass="alert alert-danger"role="alert"><p>Can not leave from Intranet Indexing : one or more remote Solr instances are attached and may contain private documents indexed.</p>
<p>Please first delete all index entries (see the <ahref="IndexControlURLs_p.html">URL Database Administration</a> page) or disconnect the remote Solr instance(s) from YaCy (see the <ahref="IndexFederated_p.html">Index Sources & Targets</a> page).</p></div>
#(/switchError)#
#(switchWarning)#::<divclass="alert alert-warning"role="alert"><p>One or more remote Solr instances are attached and may contain indexed public documents irrelevant to your local domain.</p>
<p>You may want to delete all indexed documents (see the <ahref="IndexControlURLs_p.html">URL Database Administration</a> page), disconnect or change the remote Solr instance(s) attached (see the <ahref="IndexFederated_p.html">Index Sources & Targets</a> page).</p></div>
::<divclass="alert alert-warning"role="alert"><p>One or more remote Solr instances are attached.</p>
<p>Please be sure you want to expose the indexed documents in this new mode. You may want to disconnect or change the remote Solr instance(s) attached (see the <ahref="IndexFederated_p.html">Index Sources & Targets</a> page).</p></div>
#(/switchWarning)#
<tableborder="0">
<tr>
<tdstyle="width: 256px;"><inputtype="radio"name="usecase"value="freeworld"id="usecaseFreeworld"#(freeworldChecked)#::checked="checked"#(/freeworldChecked)#/><labelfor="usecaseFreeworld">Community-based web search</label></td>
/* One or more non empty remote Solr(s) attached : disallow switching from intranet to another network to prevent disclosure of indexed private documents */
prop.put("setUseCase_switchError",1);
}else{
if(hasNonEmptyRemoteSolr){
/* One or more non empty remote Solr(s) attached : warn the user even if not coming from intranet as indexed documents may be irrelevant for the new mode */
/* One or more non empty remote Solr(s) attached : disallow switching from intranet to another network to prevent disclosure of indexed private documents */
prop.put("setUseCase_switchError",1);
}else{
if(hasNonEmptyRemoteSolr){
/* One or more non empty remote Solr(s) attached : warn the user even if not coming from intranet as indexed documents may be irrelevant for the new mode */
/* One or more non empty remote Solr(s) attached : warn the user as the indexed documents may be public external resources out of scope for intranet/localhost domain. */