是否有一些文件可以更改传递给相似性类的参数,以确定将使用哪个版本的重载方法?
我在在线文档中找不到答案。
最佳答案
模式文件末尾的相似性部分,您可以在其中指定自定义相似性或使用与 Solr 捆绑的相似性之外的其他相似性。
这是默认 schema.xml 下的内容 -
<!-- Similarity is the scoring routine for each document vs. a query.
A custom Similarity or SimilarityFactory may be specified here, but
the default is fine for most applications.
For more info: http://wiki.apache.org/solr/SchemaXml#Similarity
-->
<!--
<similarity class="com.example.solr.CustomSimilarityFactory">
<str name="paramkey">param value</str>
</similarity>
-->
关于java - Solr/Lucene : Is it possible to overload a method in a Custom Similarity Class?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25436340/