Implemented QueryContextRewrite (#755)
Change-Id: I14f62131063c114acdfa5cb3cb6f9eeff169d6cb
diff --git a/src/test/resources/kustvakt-test.conf b/src/test/resources/kustvakt-test.conf
index 7818711..ddc8512 100644
--- a/src/test/resources/kustvakt-test.conf
+++ b/src/test/resources/kustvakt-test.conf
@@ -49,6 +49,7 @@
# Virtual corpus and queries
max.user.persistent.queries = 5
+max.token.context.size = 40
# Availability regex only support |
# It should be removed/commented when the data doesn't contain availability field.
diff --git a/src/test/resources/test-config.xml b/src/test/resources/test-config.xml
index 5811a33..1f8beba 100644
--- a/src/test/resources/test-config.xml
+++ b/src/test/resources/test-config.xml
@@ -196,6 +196,9 @@
class="de.ids_mannheim.korap.rewrite.VirtualCorpusRewrite" />
<bean id="queryReferenceRewrite"
class="de.ids_mannheim.korap.rewrite.QueryReferenceRewrite" />
+ <bean id="queryContextRewrite"
+ class="de.ids_mannheim.korap.rewrite.QueryContextRewrite" />
+
<util:list id="rewriteTasks"
value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
@@ -203,6 +206,7 @@
<ref bean="collectionRewrite" />
<ref bean="virtualCorpusRewrite" />
<ref bean="queryReferenceRewrite" />
+ <ref bean="queryContextRewrite" />
</util:list>
<bean id="rewriteHandler"