FieldOptionsByUseCase
来源:互联网 发布:linux 命令行 用户名 编辑:程序博客网 时间:2024/06/11 00:56
http://wiki.apache.org/solr/FieldOptionsByUseCase
Here is a summary of available options on a field, broken down by use case. Atrue 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:
recommended but not necessary
- 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.
a tokenizer must be defined for the field, but it doesn't need to be indexed
For use with the TermVectorComponent
- Uses the term vector if present, otherwise the stored field. Reanalyzes the document if using the stored field.
- FieldOptionsByUseCase
- 一步一步学Linq to sql(八):继承与关系
- 编译cyanogen
- sql多字段排序
- 一步一步学Linq to sql(九):其它补充
- 一步一步学Linq to sql(十):分层构架的例子
- FieldOptionsByUseCase
- Hibernate分页的实现(支持模糊查询)
- Android 传感器(Sensor)API教程 (二) 传感器事件
- intel IPP编译
- Android 2.1 源码目录结构详解
- android list item divider line
- Android 传感器(Sensor)API教程 (三) 传感器值取得例程及处理流程
- 第十二章 3 字节流
- 关闭quick update 解决MyEclipse 启动时自动更新卡住的问题