FieldOptionsByUseCase

http://wiki.apache.org/solr/FieldOptionsByUseCase


Here is a summary of available options on a field, broken down by use case. A true or false indicates that the option must be set to the given value for the use case to function correctly.

use case

indexed

stored

multiValued

omitNorms

termVectors

termPositions

termOffsets

search within field

true

retrieve contents

true

use as unique key

true

false

sort on field

true

false

true [1]

use field boosts

false

document boosts affect searches within field

false

highlighting

true[3]

true

[2]

[2]

[2]

faceting

true

add multiple values, maintaining order

true

field length affects doc score

false

MoreLikeThis

true[5]

true[5]

term frequency[4]

true

document frequency[4]

true

tf*idf[4]

true

term postitions[4]

true

true

true

term offsets[4]

true

true

true



Notes:

  1. recommended but not necessary

  2. stored must always be true for highlighting. If you also add both termVectors and termOffsets, this can be used to boost performance. (Without termVectors/termOffsets, Solr needs to reanalyze the whole field to perform highlighting.) If you furthermore add termPositions, additional speedup may be possible. Note, that you must index the field in order to be able to use termVectors, termOffsets and termPositions.
  3. a tokenizer must be defined for the field, but it doesn't need to be indexed

  4. For use with the TermVectorComponent

  5. Uses the term vector if present, otherwise the stored field. Reanalyzes the document if using the stored field.
For further considerations for faceting, see also SolrFacetingOverview. For more information on term frequency, positions, offsets etc. see TermVectorComponent.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值