Lucene Cloudant搜索以返回文档中的结果

Lucene Cloudant搜索以返回文档中的结果,lucene,cloudant,Lucene,Cloudant,我希望能够在如下文档中实现对foo数组中的项目的搜索: { "_id":"...", "_rev":"...", "foo": [ "This is some text", "Another lot of text", "In fact there are lots and lots of these", ... ] ... } foo数组最多可以包含数千项。有几千份文件 我知道如何根据问题索引和搜索foo数组中的项目,但理想情况下,我

我希望能够在如下文档中实现对foo数组中的项目的搜索:

{
  "_id":"...",
  "_rev":"...",
  "foo":
  [
    "This is some text", 
    "Another lot of text",
    "In fact there are lots and lots of these",
    ...
  ]
  ...
}
foo数组最多可以包含数千项。有几千份文件

我知道如何根据问题索引和搜索foo数组中的项目,但理想情况下,我希望搜索能够只返回foo中匹配的项目,而不是包含匹配项目的每个文档的全部

我可以处理整个文档结果来删除不匹配的foo项,但是有更好的方法吗