Solr Cookbook学习记录 - MoreLikeThis学习

来源:互联网 发布:查看linux网络地址 编辑:程序博客网 时间:2024/06/01 09:24
TermVectors, Analyzers and MoreLikeThis<field name="cat" ... termVectors="true" />如果termVectors 没有stored,MoreLikeThis将会从stored fields中生成terms参数如下:mlt         'true' to enable MoreLikeThis resultsmlt.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

0 0