如何使用嵌套文档的solr执行部分文本搜索?

如何使用嵌套文档的solr执行部分文本搜索?,solr,Solr,我正在使用ApacheSolr进行文本搜索。我有嵌套文档结构。这是一个.json文件: { "id": "1", "info": { "first_name": "John", "last_name": "Doe", "gender": "male" } } 我使用以下命令创建了一个名为“demo”的solr core: solr create -c demo bin/post -c demo docs2/ //docs2 has

我正在使用ApacheSolr进行文本搜索。我有嵌套文档结构。这是一个.json文件:

{
"id": "1",
"info": {
       "first_name": "John",
       "last_name": "Doe",
       "gender": "male"
        }
}
我使用以下命令创建了一个名为“demo”的solr core

solr create -c demo
bin/post -c demo docs2/   //docs2 has the one.json file 
然后,我发布了上面的记录,以便使用以下命令编制索引:

solr create -c demo
bin/post -c demo docs2/   //docs2 has the one.json file 
Solr索引并展平了上述文档的嵌套结构,我想为了更好地以以下形式索引:

{
    "id":["1"],
    "info.first_name":["John"],
    "info.last_name":["Doe"],
    "personal.gender":["male"]
}
现在,当我用文本“John”进行搜索查询时:

它起作用,并给出所需的结果

但是,当我尝试使用文本“Joh”进行部分搜索时:

它不工作,返回空


如何进行这种类型的搜索?我是否缺少索引以进行部分文本搜索的功能?

搜索Joh*,这应该可以工作

使用通配符*搜索
http://localhost:8983/solr/demo/select?indent=on&q=Joh*&wt=json