TermVectors, Analyzers and MoreLikeThis
<field name="cat" ... termVectors="true" />
如果termVectors 没有stored,MoreLikeThis将会从stored fields中生成terms
参数如下:
mlt 'true' to enable MoreLikeThis results
mlt.fl Minimum Term Frequency
DEFAULT_FIELD_NAMES = new String[] {"contents"}
mlt.mintf Minimum Document Frequency
DEFAULT_MIN_TERM_FREQ = 2
mlt.mindf Minimum Document Frequency
DEFAULT_MIN_DOC_FREQ = 5
mlt.minwl minimum word length below which words will be ignored
DEFAULT_MIN_WORD_LENGTH = 0
mlt.maxwl maximum word length above which words will be ignored
DEFAULT_MAX_WORD_LENGTH = 0
mlt.maxqt maximum number of query terms that will be included in any generated query
DEFAULT_MAX_QUERY_TERMS = 25
mlt.maxntp maximum number of tokens to parse in each example doc field that is not stored with TermVector support
DEFAULT_MAX_NUM_TOKENS_PARSED = 5000
mlt.boost [true/false] set if the query will be boosted by the interesting term relevance
DEFAULT_BOOST = false
mlt.qf Query fields and their boosts using the same format as that used in DisMaxQParserPlugin. These fields must also be specified in mlt.fl.
mlt.count The number of similar documents to return for each result
Solr Cookbook学习记录 - MoreLikeThis学习
最新推荐文章于 2024-06-21 17:02:49 发布