Solr Cookbook学习记录 - MoreLikeThis学习

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值