[英]Solr/Lucene : Is it possible to overload a method in a Custom Similarity Class?
Is there some file where I can change the arguments that are passed to the similarity class, to decide which version of the overloaded method will be used? 是否有一些文件可以更改传递给相似性类的参数,以确定将使用哪个版本的重载方法?
I can't find the answer in online documentation. 我在在线文档中找不到答案。
The similarity section to the end of the schema file if where you can specify a custom similarity or use another Similarity apart from the which comes bundled with Solr. 如果可以指定自定义相似性或使用与Solr捆绑在一起的相似性之外的其他相似性,则将相似性设置到模式文件末尾。
This is whats present under the default schema.xml - 这是默认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>
-->
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.