我正在尝试在respondent_name字段中搜索任何具有Reddy和Kumar的文档,但每当我尝试此搜索时,我都无法得到我想要的内容。 我试过了:
respondent_name:”Reddy Kumar”~3
/select?indent=on&q=respondent_name:%E2%80%9DReddy%20Kumar%E2%80%9D~3&rows=1000&wt=json
我确实从这个查询中得到了结果,但是大部分结果都返回给任何字段中包含Reddy和Kumar单词的文档,而不是在respondent_name字段中包含这些单词的文档。
我试图关注此网站,但出于某种原因,它对我不起作用: https://dzone.com/articles/tips-name-search-solr
Json docs样本:
{
"db_id":["590dd7e5fa25c3080f0d706e"],
"main_title":["District Courts, Ananthapur"],
"respondent_name":["Erikela Sunkanna",
"The ManagerLegal CellICICI Lombard General Insurance Co.Ltd.",
"S. Chandrasekhar Reddy"],
"id":"9a3c1c41-a634-4df8-91e6-1a90072ebd9f",
"_version_":1574199934804033536
},
{
"db_id":["590dd7bbfa25c3080f0d6eb4"],
"main_title":["Jr . Civil Courts,Uravakonda"],
"respondent_name":["Nayika Chinnappayya",
"Nayika Chinna Reddy",
"Nayika Devi",
"Nayika Gowramma"],
"id":"65dff199-5e51-415e-9fa3-14693c74a6a9",
"_version_":1574199931583856640
},
{
"db_id":["590dd7d0fa25c3080f0d6f93"],
"main_title":["Jr . Civil Courts,Tadipatri"],
"respondent_name":["Y.Hari Kumar Reddy"],
"id":"a162347b-6af1-4c1f-b65b-3eee76f71469",
"_version_":1574199933688348672
}
有谁能告诉我我做错了什么?