Skip to content

Commit 1f8e816

Browse files
committed
Checkouted not correctly merged files
1 parent 0a80e7f commit 1f8e816

3 files changed

Lines changed: 4 additions & 18 deletions

File tree

dspace-api/src/main/java/org/dspace/core/HibernateDBConnection.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.springframework.beans.factory.annotation.Autowired;
3636
import org.springframework.beans.factory.annotation.Qualifier;
3737
import org.springframework.orm.hibernate5.SessionFactoryUtils;
38-
import org.springframework.scheduling.annotation.Scheduled;
3938

4039
/**
4140
* Hibernate implementation of the DBConnection.
@@ -108,13 +107,6 @@ protected Transaction getTransaction() {
108107
return sessionFactory.getCurrentSession().getTransaction();
109108
}
110109

111-
// This method will run every 10 seconds
112-
@Scheduled(fixedRate = 10000) // Fixed rate in milliseconds
113-
public void logConnectionMetrics() {
114-
logHibernateStatistics();
115-
logDatabaseMetaData();
116-
}
117-
118110
/**
119111
* Check if Hibernate Session is still "alive" / open. An open Session may or may not have an open Transaction
120112
* (so isTransactionAlive() may return false even if isSessionAlive() returns true). A Session may be reused for

dspace-server-webapp/src/test/java/org/dspace/app/rest/ClarinDiscoveryRestControllerIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ public void discoverFacetsAuthorTestWithPrefix() throws Exception {
358358
// up in different items
359359
//These authors are order according to count. Only two show up because of the prefix.
360360
.andExpect(jsonPath("$._embedded.values", containsInAnyOrder(
361-
FacetValueMatcher.entryAuthor("Smith, Maria".toLowerCase()),
362-
FacetValueMatcher.entryAuthor("Smith, Donald".toLowerCase())
361+
FacetValueMatcher.entryAuthor("Smith, Maria"),
362+
FacetValueMatcher.entryAuthor("Smith, Donald")
363363
)))
364364
;
365365
}

dspace/solr/search/conf/schema.xml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -197,17 +197,11 @@
197197
<!--Treats the entire field as a single token, regardless of its content-->
198198
<tokenizer class="solr.KeywordTokenizerFactory"/>
199199

200-
<filter class="solr.LowerCaseFilterFactory" />
200+
<!--<filter class="solr.LowerCaseFilterFactory" />-->
201201
<filter class="solr.TrimFilterFactory" />
202202
</analyzer>
203203
</fieldType>
204204

205-
<fieldType name="noLowKeywordFilter" class="solr.TextField" sortMissingLast="true" omitNorms="true">
206-
<analyzer>
207-
<tokenizer class="solr.KeywordTokenizerFactory"/>
208-
</analyzer>
209-
</fieldType>
210-
211205
<!--
212206
SpellCheck analysis config based off of http://wiki.apache.org/solr/
213207
SpellCheckingAnalysis
@@ -313,7 +307,7 @@
313307
<dynamicField name="*_acid" type="keywordFilter" indexed="true" stored="true" omitNorms="true" multiValued="true"/>
314308

315309
<!--Dynamic field used for sidebar filters & SOLR browse by value -->
316-
<dynamicField name="*_filter" type="noLowKeywordFilter" indexed="true" stored="true" multiValued="true" omitNorms="true" />
310+
<dynamicField name="*_filter" type="keywordFilter" indexed="true" stored="true" multiValued="true" omitNorms="true" />
317311
<!--Dynamic field used to index the facet/filter value, split on each word to end,
318312
so that the facet search can search all words in a facet-->
319313
<dynamicField name="*_prefix" type="keywordFilter" indexed="true" stored="true" multiValued="true" omitNorms="true" />

0 commit comments

Comments
 (0)