Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Full redesign of solr connection architecture. This was done to support
multiple solr cores instead of just one. Therefore it is now necessary to distuingish between solr server connections (called an 'Instance') and a connection to a single solr core. One Instance may now have multiple connector classes assigned to it, each connecting to a single core. To support multiple cores it is also necessary to distinguish between the connection configuration and the configuration of the index schema. We will have multiple schema configurations in the future, each for every solr core. This caused that the IndexFederated servlet had to be split into two parts, the new Servlet for the Schema editor is now in the IndexSchema Servlet.
- Loading branch information
Showing
35 changed files
with
932 additions
and
513 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>YaCy '#[clientname]#': Solr Schema Editor</title> | ||
#%env/templates/metas.template%# | ||
</head> | ||
<body id="IndexSchema_p"> | ||
<div id="api"> | ||
<a href="/api/schema.xml"> | ||
<img src="env/grafics/api.png" width="60" height="40" alt="API" /></a> | ||
<span>The solr schema can also be retrieved as xml here. Click the API icon to see the xml. Just copy this xml to solr/conf/schema.xml to configure solr.</span> | ||
</div> | ||
#%env/templates/header.template%# | ||
#%env/templates/submenuIndexControl.template%# | ||
<h2>Solr Schema Editor</h2> | ||
<p>If you use a custom Solr schema you may enter a different field name in the column 'Custom Solr Field Name' of the YaCy default attribute name</p> | ||
|
||
<form action="IndexSchema_p.html" method="post" enctype="multipart/form-data" accept-charset="UTF-8"> | ||
<fieldset> | ||
<div> | ||
<table class="sortable" border="0" cellpadding="2" cellspacing="1"> | ||
<tr class="TableHeader" valign="bottom"> | ||
<td>Active</td> | ||
<td>Attribute</td> | ||
<td>Custom Solr Field Name</td> | ||
<td>Comment</td> | ||
</tr> | ||
#{schema}# | ||
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#"> | ||
<td align="center"><input type="checkbox" name="schema_#[key]#" value="checked" #(checked)#::checked="checked"#(/checked)#/></td> | ||
<td align="left">#[key]#</td> | ||
<td align="left"><input type="text" name="schema_solrfieldname_#[key]#" value="#[solrfieldname]#"/></td> | ||
<td align="left">#[comment]#</td> | ||
</tr> | ||
#{/schema}# | ||
</table> | ||
<dl> | ||
<dt class="TableCellDark">Lazy Value Initialization</dt> | ||
<dd><input type="checkbox" name="lazy" id="lazy" #(lazy.checked)#:: checked="checked"#(/lazy.checked)# /> (if checked, only non-zero values and non-empty strings are written)</dd> | ||
</dl> | ||
</div> | ||
</fieldset> | ||
<input type="submit" name="set" value="Set" /> | ||
</form> | ||
|
||
#%env/templates/footer.template%# | ||
</body> | ||
</html> |
Oops, something went wrong.