diff --git a/library/build.gradle b/library/build.gradle index 01bd84e..fca7444 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -10,7 +10,7 @@ repositories { allprojects { group = 'org.querqy' - version = '1.0.0' + version = '1.0.1-SNAPSHOT' } ext { @@ -100,14 +100,14 @@ publishing { } } } - +/* signing { def signingKey = findProperty("signingKey") def signingPassword = findProperty("signingPassword") useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mavenJava } - +*/ javadoc { if(JavaVersion.current().isJava9Compatible()) { diff --git a/library/src/main/java/querqy/rewriter/builder/CommonRulesDefinition.java b/library/src/main/java/querqy/rewriter/builder/CommonRulesDefinition.java index 65b7793..0efa3ec 100644 --- a/library/src/main/java/querqy/rewriter/builder/CommonRulesDefinition.java +++ b/library/src/main/java/querqy/rewriter/builder/CommonRulesDefinition.java @@ -15,7 +15,7 @@ // TODO: termCache, selectionStrategyFactories @Builder -@NoArgsConstructor +@NoArgsConstructor(force = true) @AllArgsConstructor @Data @EqualsAndHashCode(exclude = {"boostMethod", "querqyParserFactory"}) @@ -27,6 +27,7 @@ public class CommonRulesDefinition { @Builder.Default private boolean ignoreCase = true; @Builder.Default private boolean allowBooleanInput = false; + @Builder.Default private boolean buildTermCache = false; @Builder.Default private BoostInstruction.BoostMethod boostMethod = BoostInstruction.BoostMethod.ADDITIVE; @Builder.Default private QuerqyParserFactory querqyParserFactory = new WhiteSpaceQuerqyParserFactory(); diff --git a/library/src/main/java/querqy/rewriter/builder/CommonRulesFactoryBuilder.java b/library/src/main/java/querqy/rewriter/builder/CommonRulesFactoryBuilder.java index 1d7ea5d..fb73b32 100644 --- a/library/src/main/java/querqy/rewriter/builder/CommonRulesFactoryBuilder.java +++ b/library/src/main/java/querqy/rewriter/builder/CommonRulesFactoryBuilder.java @@ -25,7 +25,7 @@ public SimpleCommonRulesRewriterFactory build() { definition.isIgnoreCase(), Collections.emptyMap(), new ExpressionCriteriaSelectionStrategyFactory(), - false + definition.isBuildTermCache() ); } catch (IOException e) {