【发布时间】:2012-04-02 20:04:10
【问题描述】:
我已经看到 Solr 将允许您索引 JSON: http://wiki.apache.org/solr/UpdateJSON
但是,没有一个示例是嵌套的。你能索引这样的东西吗?如果不能,它通常是如何处理的?
{
name: 'ben',
state: 'california',
country: 'united states',
companies: [
{
name: 'google',
title: 'software engineer',
},
{
name: 'sherwin-williams',
title: 'web developer'
}
],
}
【问题讨论】:
-
随着最新的 Lucene 版本,现在有嵌套:blog.mikemccandless.com/2012/01/…
-
Lucene 从 3.4 版开始通过称为 index-time join 的功能支持嵌套文档。但是,我找不到任何关于如何创建嵌套文档的教程或简单示例。