solr 中的 delimited_payload_string 字段类型是什么
what's delimited_payload_string fieldtype in solr
我是 solr 新手。有人可以解释一下 delimited_payload_string
字段类型是什么吗?
例如,我可以将以下 JSON 对象存储为多值 delimited_payload_string 吗?
"classifications": [
{"code": "RESTAURANT", "names": [{"nameLocale": "en-US", "name": "restaurant"}, {"nameLocale": "en-US", "name": "fast food"}]}
]
分隔的有效负载字符串用于将有效负载附加到特定字段 - 有效负载是文档中不可见的附加值,但可由自定义插件使用。来自 Solr Payloads
Available alongside the positionally related information is an optional general purpose byte array. At the lowest-level, Lucene allows any term in any position to store whatever bytes it’d like in its payload area. This byte array can be retrieved as the term’s position is accessed.
[...]
A payload’s primary use case is to affect relevancy scoring; there are also other very interesting ways to use payloads, discussed here later. Built-in at Lucene’s core scoring mechanism is float Similarity#computePayloadFactor() which until now has not been used by any production code in Lucene or Solr; though to be sure, it has been exercised extensively within Lucene’s test suite since inception. It’s hardy, just under-utilized outside custom expert-level coding to ensure index-time payloads are encoded the same way they are decoded at query time, and to hook this mechanism into scoring.
在您的情况下,您可能希望在索引之前展平文档并将值作为单独的标签编制索引,具体取决于您要对数据执行的操作。
我是 solr 新手。有人可以解释一下 delimited_payload_string
字段类型是什么吗?
例如,我可以将以下 JSON 对象存储为多值 delimited_payload_string 吗?
"classifications": [
{"code": "RESTAURANT", "names": [{"nameLocale": "en-US", "name": "restaurant"}, {"nameLocale": "en-US", "name": "fast food"}]}
]
分隔的有效负载字符串用于将有效负载附加到特定字段 - 有效负载是文档中不可见的附加值,但可由自定义插件使用。来自 Solr Payloads
Available alongside the positionally related information is an optional general purpose byte array. At the lowest-level, Lucene allows any term in any position to store whatever bytes it’d like in its payload area. This byte array can be retrieved as the term’s position is accessed.
[...]
A payload’s primary use case is to affect relevancy scoring; there are also other very interesting ways to use payloads, discussed here later. Built-in at Lucene’s core scoring mechanism is float Similarity#computePayloadFactor() which until now has not been used by any production code in Lucene or Solr; though to be sure, it has been exercised extensively within Lucene’s test suite since inception. It’s hardy, just under-utilized outside custom expert-level coding to ensure index-time payloads are encoded the same way they are decoded at query time, and to hook this mechanism into scoring.
在您的情况下,您可能希望在索引之前展平文档并将值作为单独的标签编制索引,具体取决于您要对数据执行的操作。