From 4836241a9b3308032c4024a1ef5299821eddf0e0 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Tue, 5 Feb 2013 15:27:38 -0500 Subject: [PATCH] Resolving VUFIND-680 (indexing improvements: better all fields handling, more alt title sources). --- import/marc.properties | 4 ++-- solr/biblio/conf/schema.xml | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/import/marc.properties b/import/marc.properties index 4d8227d7832..ede9390da16 100644 --- a/import/marc.properties +++ b/import/marc.properties @@ -12,7 +12,7 @@ building = "Library A" fullrecord = FullRecordAsMarc recordtype = "marc" -allfields = custom, getAllSearchableFields(100, 900) +allfields = custom, getAllSearchableFieldsAsSet(100, 900) language = 008[35-37]:041a:041d:041h:041j, language_map.properties format = custom, getFormat, format_map.properties @@ -29,7 +29,7 @@ title_sub = 245b, first title_short = 245a, first title_full = custom, getAllAlphaSubfields(245, first) title_auth = 245ab, first -title_alt = 130adfgklnpst:240a:246a:730adfgklnpst:740a +title_alt = 100t:130adfgklnpst:240a:246a:505t:700t:710t:711t:730adfgklnpst:740a title_old = 780ast title_new = 785ast title_sort = custom, getSortableTitle diff --git a/solr/biblio/conf/schema.xml b/solr/biblio/conf/schema.xml index 205fc1ac2d4..dfe0aa082fa 100644 --- a/solr/biblio/conf/schema.xml +++ b/solr/biblio/conf/schema.xml @@ -98,11 +98,11 @@ <field name="id" type="string" indexed="true" stored="true"/> <field name="fullrecord" type="string" indexed="false" stored="true"/> <field name="marc_error" type="string" indexed="false" stored="true" multiValued="true"/> - <field name="allfields" type="text" indexed="true" stored="false"/> - <field name="allfields_unstemmed" type="textProper" indexed="true" stored="false"/> + <field name="allfields" type="text" indexed="true" stored="false" multiValued="true"/> + <field name="allfields_unstemmed" type="textProper" indexed="true" stored="false" multiValued="true"/> <field name="fulltext" type="text" indexed="true" stored="false"/> <field name="fulltext_unstemmed" type="textProper" indexed="true" stored="false"/> - <field name="spelling" type="textSpell" indexed="true" stored="true"/> + <field name="spelling" type="textSpell" indexed="true" stored="true" multiValued="true"/> <field name="spellingShingle" type="textSpellShingle" indexed="true" stored="true" multiValued="true"/> <!-- Institutional Fields --> <field name="institution" type="string" indexed="true" stored="true" multiValued="true"/> @@ -236,6 +236,9 @@ <copyField source="topic" dest="topic_browse"/> <copyField source="author" dest="author_browse"/> <copyField source="author2" dest="author_browse"/> + <!-- CopyFields for All Fields --> + <copyField source="format" dest="allfields"/> + <copyField source="format" dest="allfields_unstemmed"/> <!-- Default Boolean Operator --> <solrQueryParser defaultOperator="AND"/> </schema> -- GitLab