Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[DS-1248] Remove unused SolrLogger code for unsupported "metadata.item." settings #111

Merged
merged 1 commit into from

1 participant

@KevinVdV
Owner

No description provided.

@KevinVdV KevinVdV merged commit adf05dd into DSpace:master
@helix84 helix84 referenced this pull request from a commit in helix84/DSpace
@helix84 helix84 fix build failure introduced by pull #111 b10be85
@hardyoyo hardyoyo referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@artlowel artlowel referenced this pull request from a commit in atmire/DSpace
@helix84 helix84 fix build failure introduced by pull #111 8e58b5a
@kosarko kosarko referenced this pull request from a commit in kosarko/DSpace
@kosarko kosarko removing unused variables #111 f70b8fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 25, 2012
  1. @KevinVdV
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 38 deletions.
  1. +0 −38 dspace-api/src/main/java/org/dspace/statistics/SolrLogger.java
View
38 dspace-api/src/main/java/org/dspace/statistics/SolrLogger.java
@@ -78,8 +78,6 @@
private static final boolean useProxies;
- private static Map<String, String> metadataStorageInfo;
-
private static List<String> statisticYearCores = new ArrayList<String>();
public static enum StatisticsType {
@@ -179,19 +177,6 @@ public boolean accept(File file) {
}
log.info("useProxies=" + useProxies);
-
- metadataStorageInfo = new HashMap<String, String>();
- int count = 1;
- String metadataVal;
- while ((metadataVal = ConfigurationManager.getProperty("solr-statistics","metadata.item." + count)) != null)
- {
- String storeVal = metadataVal.split(":")[0];
- String metadataField = metadataVal.split(":")[1];
-
- metadataStorageInfo.put(storeVal, metadataField);
- log.info("solr-statistics.metadata.item." + count + "=" + metadataVal);
- count++;
- }
}
/**
@@ -228,29 +213,6 @@ public static void postView(DSpaceObject dspaceObject, HttpServletRequest reques
{
SolrInputDocument doc1 = getCommonSolrDoc(dspaceObject, request, currentUser);
if (doc1 == null) return;
-
- if (dspaceObject instanceof Item)
- {
- Item item = (Item) dspaceObject;
- // Store the metadata
- for (Object storedField : metadataStorageInfo.keySet())
- {
- String dcField = metadataStorageInfo
- .get(storedField);
-
- DCValue[] vals = item.getMetadata(dcField.split("\\.")[0],
- dcField.split("\\.")[1], dcField.split("\\.")[2],
- Item.ANY);
- for (DCValue val1 : vals)
- {
- String val = val1.value;
- doc1.addField(String.valueOf(storedField), val);
- doc1.addField(storedField + "_search", val
- .toLowerCase());
- }
- }
- }
-
if(dspaceObject instanceof Bitstream)
{
Bitstream bit = (Bitstream) dspaceObject;
Something went wrong with that request. Please try again.