字段类型的属性
字段类型的类决定了字段的大部分形态,同时部分属性在schema.xml中也是可以定义的。 moncler paris 举个例子,以下顶了日期类型的两个属性:sortMissingLast 和 omitNorms:
<fieldType name=”date” sortMissingLast=”true” omitNorms=”true”/> |
大部分的属性是 true 或 false。 timberland soldes
这里是一些常用的属性:
字段属性 |
描述 |
值 |
indexed |
如果为true, basket timberland 该字段可以被搜索 |
True 或 false |
stored |
如果为true, ugg outlet france 该字段可以值将被保存在索引库 |
True或 false |
sortMissingFirst sortMissingLast |
X暂时不太理解 |
True或 false |
multiValued |
如果为true,该字段可以保存多个值 |
True或 false |
positionIncrementGap |
用于多值字段, timberland pas cher 表示多个值之间的距离, ugg pas cher 防止错误的短语匹配 |
整数 |
omitNorms |
如果为true, ugg pas cher femme 忽略该字段的norms,只有全文字段或者字段在索引时设置boost需要norms。 标签:schema.xml, 字段属性
Copyright © All Rights Reserved · Green Hope Theme by Sivan & schiy · Proudly powered by WordPress · 闽ICP备18020075号 |