File tree Expand file tree Collapse file tree
dspace-api/src/main/java/org/dspace/core
dspace-server-webapp/src/test/java/org/dspace/app/rest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535import org .springframework .beans .factory .annotation .Autowired ;
3636import org .springframework .beans .factory .annotation .Qualifier ;
3737import 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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
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" />
You can’t perform that action at this time.
0 commit comments