From 9f9e8332532ba3a01f23df4be9ed06b6f403a481 Mon Sep 17 00:00:00 2001 From: j2blake Date: Thu, 17 Oct 2013 15:10:36 -0400 Subject: [PATCH] VIVO-377 Remove "classLocalName" from the search index. Brian Caruso and I could not find any place where it was being used. --- solr/homeDirectoryTemplate/conf/schema.xml | 2 -- .../mannlib/vitro/webapp/search/VitroSearchTermNames.java | 2 -- .../solr/documentBuilding/IndividualToSolrDocument.java | 4 ---- 3 files changed, 8 deletions(-) diff --git a/solr/homeDirectoryTemplate/conf/schema.xml b/solr/homeDirectoryTemplate/conf/schema.xml index 83cf950d2..7d2832a40 100644 --- a/solr/homeDirectoryTemplate/conf/schema.xml +++ b/solr/homeDirectoryTemplate/conf/schema.xml @@ -191,8 +191,6 @@ - - diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/VitroSearchTermNames.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/VitroSearchTermNames.java index c46783f5a..b53ad9e4d 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/VitroSearchTermNames.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/VitroSearchTermNames.java @@ -11,8 +11,6 @@ public class VitroSearchTermNames { /** rdf:type */ public static String RDFTYPE = "type"; - /** class names in human readable form of an individual*/ - public static final String CLASSLOCALNAME = "classLocalName"; /** classgroups from the individual's rdf:types */ public static String CLASSGROUP_URI = "classgroup"; /** Most specific types for individual*/ diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/documentBuilding/IndividualToSolrDocument.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/documentBuilding/IndividualToSolrDocument.java index 7d4eaa4f3..c32bb2503 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/documentBuilding/IndividualToSolrDocument.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/search/solr/documentBuilding/IndividualToSolrDocument.java @@ -263,10 +263,6 @@ public class IndividualToSolrDocument { doc.addField(term.RDFTYPE, clz.getURI()); - if(clz.getLocalName() != null){ - doc.addField(term.CLASSLOCALNAME, clz.getLocalName()); - } - if(clz.getName() != null){ classPublicNames.append(" "); classPublicNames.append(clz.getName());