Solr含有多种字段类型,可用的字段类型基本都定义在了包org.apache.solr.schema中,列举如下:
| 类 | 说明 |
|---|---|
| BinaryField | 二进制数据 |
| BoolField |
布尔值,其中’t’/’T’/’1’都是true |
| CollationFiled | 支持Unicode排序 |
| CurrencyField | 支持货币和汇率 |
| DateRangeFiled | 支持索引date range |
| ExternamFiledFiled | pull磁盘上的文件 |
| EnumField | 支持定义枚举值 |
| ICUCollationField | 支持Unicode排序 |
| LatLonType | 支持经度、纬度坐标 |
| PointType | 支持任意的n维向量,可以用于检索CAD图数据 |
| PreAnalyzedField | 用于支持序列化数据 |
| RandomSortField | 结果随机排序 |
| SpatialRecursivePrefixTreeFieldType | 支持经纬度字符串或WKT格式 |
| StrField | 字符串,不分词,并且小于32k |
| TextField | 文本字段 |
| TrieDateField | 日期类型字段 |
| TrieDoubleField | 双精度类型字段 |
| TrieField | 使用时必须指定”type”属性(integer,long,double,date) |
| TrieFloatField | 单精度类型字段 |
| TrieIntField | 整数字段 |
| TrieLongField | 长整形字段 |
| UUIDField | Universally Unique Identifier通用唯一识别码 |
本文详细介绍了Solr中可用的多种字段类型,包括文本、日期、数字等,并提供了每个字段类型的特性和应用场景。
1830

被折叠的 条评论
为什么被折叠?



