-
Notifications
You must be signed in to change notification settings - Fork 3
Disabling Query Rewrites
Eliza Margaretha edited this page Nov 4, 2021
·
1 revision
Kustvakt full version includes some query rewrites that may not be relevant for systems other than KorAP. The query rewrites can be disabled in the spring configuration file, which is located at: /Kustvakt-full/src/main/resources/default-config.xml
Go to the lines populating the query rewrites as shown below.
<!-- Rewrite -->
<bean id="foundryRewrite" class="de.ids_mannheim.korap.rewrite.FoundryRewrite"/>
<bean id="collectionRewrite" class="de.ids_mannheim.korap.rewrite.CollectionRewrite"/>
<bean id="virtualCorpusRewrite" class="de.ids_mannheim.korap.rewrite.VirtualCorpusRewrite"/>
<bean id="queryReferenceRewrite" class="de.ids_mannheim.korap.rewrite.QueryReferenceRewrite"/>
<util:list id="rewriteTasks" value-type="de.ids_mannheim.korap.rewrite.RewriteTask">
<ref bean="foundryRewrite" />
<ref bean="collectionRewrite" />
<ref bean="virtualCorpusRewrite" />
<ref bean="queryReferenceRewrite" />
</util:list>
Comment the bean and the reference of the query rewrite to disable. For instance, to disable collectionRewrite
, the bean with id="collectionRewrite"
and ref bean="collectionRewrite"
should be commented.
Collection rewrite manages rewrites on virtual corpora by using availability regex in kustvakt.conf, which should also be commented.
## availability regex
## only support |
# availability.regex.free = CC-BY.*
# availability.regex.public = ACA.*|QAO.NC
# availability.regex.all = QAO.*
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (Marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- User group creation
- User group deletion
- User group list
- Member invitation
- Member deletion
- Approval of member invitation
- Rejection of member invitation
- Member role management
- Virtual corpus creation and update
- Virtual corpus deletion
- Virtual corpus list
- Virtual corpus retrieval
- Virtual corpus statistics
- Virtual corpus statistics with KoralQuery