【发布时间】:2015-01-14 18:55:24
【问题描述】:
我有一些类似上面的索引文档:
{
"doc_desc": "Indexing Child Documents in JSON",
"doc_id": "379",
"image_id": [
"28086# ho hum... this is page 1 of chapter 1",
"28087# more text... this is page 2 of chapter 1",
"28088# more text... this is page 3 of chapter 1"
]
}
当我查询“嗡嗡声”时,我需要返回的文档类似于:
{
"doc_desc": "Indexing Child Documents in JSON",
"doc_id": "379",
"image_id": [
"28086# ho hum... this is page 1 of chapter 1"
]
}
这样我就可以知道包含我正在搜索的单词的确切页面。我该怎么做?
换句话说...如何从结果中排除与我的查询不匹配的多值字段?
OBS:我正在使用 solr-4.10.2 和我的 SQL Server 数据库中的数据导入 (db-data-config.xml)。
【问题讨论】:
标签: solr indexing lucene dataimporthandler