【发布时间】:2018-06-17 01:15:56
【问题描述】:
我正在按照文章实现自定义 SOLR PostFilter 逻辑: http://qaware.blogspot.com/2014/11/how-to-write-postfilter-for-solr-49.html https://lucidworks.com/2015/05/15/custom-security-filtering-solr-5/
在我的自定义 SOLR 后过滤器中,我正在对 SQL Server 进行数据库调用,并且我需要基于环境的不同连接字符串 - dev/preprod/prod。
如何从 SOLR 中的某些配置中读取连接字符串? 是否可以以某种方式扩展配置,以便在自定义 QueryParser 中读取连接字符串?
例如,在 Solr.config 内部的某个地方定义了自定义解析器?
<queryParser name="CustomSolrPostFilter" class="CustomSolrPostFilter" />
或者以某种方式从 core.properties 文件中读取?
【问题讨论】:
标签: solr