Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
turned author_s into the multi-valued field author_sxt
Michael Peter Christen8651ec35fead
diff --git a/defaults/solr/schema.xml b/defaults/solr/schema.xmlindex c430bb0b5..d71683db2 100755--- a/defaults/solr/schema.xml+++ b/defaults/solr/schema.xml@@ -116,7 +116,7 @@<field name="description" type="text_general" indexed="true" stored="true"/><field name="comments" type="text_general" indexed="true" stored="true"/><field name="author" type="text_general" indexed="true" stored="true"/>- <copyField source="author" dest="author_s" maxChars="100" />+ <copyField source="author" dest="author_sxt" maxChars="100" /><field name="keywords" type="text_general" indexed="true" stored="true"/><field name="category" type="text_general" indexed="true" stored="true"/><field name="content_type" type="string" indexed="true" stored="true" multiValued="true"/>diff --git a/source/net/yacy/cora/federate/solr/YaCySchema.java b/source/net/yacy/cora/federate/solr/YaCySchema.javaindex 3a0df9b7e..c4c4ec737 100644--- a/source/net/yacy/cora/federate/solr/YaCySchema.java+++ b/source/net/yacy/cora/federate/solr/YaCySchema.java@@ -65,7 +65,7 @@ public enum YaCySchema implements Schema {coordinate_p(SolrType.location, true, true, false, "point in degrees of latitude,longitude as declared in WSG84"),ip_s(SolrType.string, true, true, false, "ip of host of url (after DNS lookup)"),author(SolrType.text_general, true, true, false, "content of author-tag"),- author_s(SolrType.string, true, true, false, "content of author-tag as copy-field from author. This is used for facet generation"),+ author_sxt(SolrType.string, true, true, true, "content of author-tag as copy-field from author. This is used for facet generation"),description(SolrType.text_general, true, true, false, "content of description-tag"),description_unique_b(SolrType.bool, true, true, false, "flag shows if description is unique in the whole index; if yes and another document appears with same description, the unique-flag is set to false"),keywords(SolrType.text_general, true, true, false, "content of keywords tag; words are separated by space"),diff --git a/source/net/yacy/search/query/QueryParams.java b/source/net/yacy/search/query/QueryParams.javaindex 438d11380..62bba6e30 100644--- a/source/net/yacy/search/query/QueryParams.java+++ b/source/net/yacy/search/query/QueryParams.java@@ -87,7 +87,7 @@ public final class QueryParams {YaCySchema.host_s.getSolrFieldName(),YaCySchema.url_protocol_s.getSolrFieldName(),YaCySchema.url_file_ext_s.getSolrFieldName(),- YaCySchema.author_s.getSolrFieldName()};+ YaCySchema.author_sxt.getSolrFieldName()};private static final int defaultmaxfacets = 30;@@ -471,7 +471,7 @@ public final class QueryParams {// add author facetsif (this.author != null && this.author.length() > 0) {- fq.append(" AND ").append(YaCySchema.author_s.getSolrFieldName()).append(":\"").append(this.author).append('\"');+ fq.append(" AND ").append(YaCySchema.author_sxt.getSolrFieldName()).append(":\"").append(this.author).append('\"');}if (this.protocol != null) {diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.javaindex 95b81235d..bc95a905a 100644--- a/source/net/yacy/search/query/SearchEvent.java+++ b/source/net/yacy/search/query/SearchEvent.java@@ -526,7 +526,7 @@ public final class SearchEvent {}if (this.authorNavigator != null) {- fcts = facets.get(YaCySchema.author_s.getSolrFieldName());+ fcts = facets.get(YaCySchema.author_sxt.getSolrFieldName());if (fcts != null) this.authorNavigator.inc(fcts);}