From 2dbe62a5364a7820d0b285d6e53f3361d46939bc Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 24 Mar 2015 05:47:39 +0100 Subject: [PATCH] remove invalid sortable author field --- finc/schema.go | 1 - finc/solr.go | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/finc/schema.go b/finc/schema.go index 8c7d30b9..21bd2aec 100644 --- a/finc/schema.go +++ b/finc/schema.go @@ -356,7 +356,6 @@ func (is *IntermediateSchema) ToSolrSchema(iih holdings.IsilIssnHolding) (*SolrS output.PublishDateSort = date.Year() output.Publishers = is.Publishers output.RecordType = AIRecordType - output.SortableAuthor = is.SortableAuthor() output.SortableTitle = is.SortableTitle() output.SourceID = is.SourceID output.Subtitle = is.ArticleSubtitle diff --git a/finc/solr.go b/finc/solr.go index 0e57d48c..83b620c8 100644 --- a/finc/solr.go +++ b/finc/solr.go @@ -22,11 +22,10 @@ type SolrSchema struct { RecordType string `json:"recordtype,omitempty"` SecondaryAuthors []string `json:"author2,omitempty"` SourceID string `json:"source_id,omitempty"` - SortableTitle string `json:"title_sort"` - SortableAuthor string `json:"author_sort"` - Subtitle string `json:"title_sub"` + SortableTitle string `json:"title_sort,omitempty"` + Subtitle string `json:"title_sub,omitempty"` Title string `json:"title,omitempty"` - TitleFull string `json:"title_full"` + TitleFull string `json:"title_full,omitempty"` TitleShort string `json:"title_short,omitempty"` TitleSort string `json:"title_sort,omitempty"` Topics []string `json:"topic,omitempty"`