lowercase to period name on native and temporal fields

This commit is contained in:
Enrico Ottonello 2021-10-26 17:49:22 +02:00
parent 0010458a23
commit c7673f7ba1
3 changed files with 12 additions and 2 deletions

View File

@ -21,7 +21,7 @@ public class NativePeriod {
}
public void setPeriodName(String periodName) {
this.periodName = WordUtils.capitalizeFully(periodName);
this.periodName = periodName.toLowerCase();
}
public String getUntil() {

View File

@ -25,7 +25,7 @@ public class Temporal {
}
public void setPeriodName(String periodName) {
this.periodName = WordUtils.capitalizeFully(periodName);
this.periodName = periodName.toLowerCase();
}
public String getUntil() {

View File

@ -361,6 +361,16 @@ public class GraphDbReaderAndESIndexTest {
readAndIndexTest(isRecord, recordId, datasource, collectionId);
}
@Test
// @Ignore
public void uploadNormalizerTest2() throws Exception {
boolean isRecord = true;
String recordId = "https://ariadne-infrastructure.eu/aocat/Resource/A0D9DC1F-2C62-3423-BAE6-4248D5072585";
String datasource = "ads";
String collectionId = "321";
readAndIndexTest(isRecord, recordId, datasource, collectionId);
}
private void readAndIndexTest(boolean isRecord, String recordId, String datasource, String collectionId) throws Exception {
final ClassPathResource resource = new ClassPathResource("application.properties");
Properties appProps = new Properties();