Skip to content
Snippets Groups Projects
Commit 58ae6f55 authored by Demian Katz's avatar Demian Katz
Browse files

Adjusted Solr/alphabrowse configuration in preparation for collection browse option.

parent d48a9533
No related merge requests found
...@@ -59,6 +59,7 @@ if exist %index_dir% goto nomakeindexdir ...@@ -59,6 +59,7 @@ if exist %index_dir% goto nomakeindexdir
mkdir "%index_dir%" mkdir "%index_dir%"
:nomakeindexdir :nomakeindexdir
call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse hierarchy hierarchy_browse
call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse title title_fullStr 1 "-Dbibleech=StoredFieldLeech -Dsortfield=title_sort -Dvaluefield=title_fullStr" call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse title title_fullStr 1 "-Dbibleech=StoredFieldLeech -Dsortfield=title_sort -Dvaluefield=title_fullStr"
call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse topic topic_browse call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse topic topic_browse
call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse author author_browse call %VUFIND_HOME%\index-alphabetic-browse.bat build_browse author author_browse
......
...@@ -34,7 +34,7 @@ function build_browse ...@@ -34,7 +34,7 @@ function build_browse
mv "${browse}_browse.db" "$index_dir/${browse}_browse.db-updated" mv "${browse}_browse.db" "$index_dir/${browse}_browse.db-updated"
touch "$index_dir/${browse}_browse.db-ready" touch "$index_dir/${browse}_browse.db-ready"
} }
build_browse "hierarchy" "hierarchy_browse"
build_browse "title" "title_fullStr" 1 "-Dbibleech=StoredFieldLeech -Dsortfield=title_sort -Dvaluefield=title_fullStr" build_browse "title" "title_fullStr" 1 "-Dbibleech=StoredFieldLeech -Dsortfield=title_sort -Dvaluefield=title_fullStr"
build_browse "topic" "topic_browse" build_browse "topic" "topic_browse"
build_browse "author" "author_browse" build_browse "author" "author_browse"
......
...@@ -9,6 +9,12 @@ ...@@ -9,6 +9,12 @@
<filter class="solr.PatternReplaceFilterFactory" pattern="(?&lt;!\b[A-Z])[.\s]*$" replacement="" replace="first"/> <filter class="solr.PatternReplaceFilterFactory" pattern="(?&lt;!\b[A-Z])[.\s]*$" replacement="" replace="first"/>
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldType name="textFacetRaw" class="solr.TextField" sortMissingLast="true" omitNorms="true">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<!-- this is just like textFacet but without punctuation stripping. -->
</analyzer>
</fieldType>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100"> <fieldType name="text" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.ICUTokenizerFactory"/> <tokenizer class="solr.ICUTokenizerFactory"/>
...@@ -185,6 +191,7 @@ ...@@ -185,6 +191,7 @@
<field name="hierarchy_sequence" type="string" indexed="true" stored="true" multiValued="true"/> <field name="hierarchy_sequence" type="string" indexed="true" stored="true" multiValued="true"/>
<field name="is_hierarchy_id" type="string" indexed="true" stored="true" multiValued="false"/> <field name="is_hierarchy_id" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="is_hierarchy_title" type="string" indexed="true" stored="true" multiValued="false"/> <field name="is_hierarchy_title" type="string" indexed="true" stored="true" multiValued="false"/>
<field name="hierarchy_browse" type="textFacetRaw" indexed="true" stored="false" multiValued="true"/>
<!-- Used for loading correct record driver --> <!-- Used for loading correct record driver -->
<field name="recordtype" type="string" indexed="false" stored="true"/> <field name="recordtype" type="string" indexed="false" stored="true"/>
<!-- Tracking fields to keep track of oldest and most recent index times --> <!-- Tracking fields to keep track of oldest and most recent index times -->
......
...@@ -469,7 +469,7 @@ ...@@ -469,7 +469,7 @@
<str name="scopeNoteField">scope_note</str> <str name="scopeNoteField">scope_note</str>
<str name="sources">topic,author,title,lcc,dewey</str> <str name="sources">topic,author,title,lcc,dewey,hierarchy</str>
<lst name="topic"> <lst name="topic">
<str name="DBpath">${solr.solr.home:./solr}/alphabetical_browse/topic_browse.db</str> <str name="DBpath">${solr.solr.home:./solr}/alphabetical_browse/topic_browse.db</str>
...@@ -497,6 +497,10 @@ ...@@ -497,6 +497,10 @@
<str name="ignoreDiacritics">yes</str> <str name="ignoreDiacritics">yes</str>
</lst> </lst>
<lst name="hierarchy">
<str name="DBpath">${solr.solr.home:./solr}/alphabetical_browse/hierarchy_browse.db</str>
<str name="field">hierarchy_browse</str>
</lst>
</requestHandler> </requestHandler>
<searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent"> <searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment