Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
查询子文档的Solr_Solr - Fatal编程技术网

查询子文档的Solr

查询子文档的Solr,solr,Solr,我通常使用elasticsearch,我对solr是新手。我如何在子文档中搜索邮政编码,例如下面的代码?有可能吗 { name: "my Name", phone: { mobile: "(123) 456 7800", mobile2: "(123) 456 7800" }, Address:{ Home: { address: "123 something way", cs: "El Cerrito, CA",

我通常使用elasticsearch,我对solr是新手。我如何在子文档中搜索邮政编码,例如下面的代码?有可能吗

{
  name: "my Name",
  phone: {
     mobile: "(123) 456 7800", 
     mobile2: "(123) 456 7800"
  },
  Address:{
     Home: {
        address: "123 something way",
        cs: "El Cerrito, CA",
        zip: 99999
     },
     Work: {
        address: "444 Goldriver drive",
        cs: "Cool, CA",
        zip: 88888  
     }
 }
}

有两种解决方案,您可能希望在谷歌上搜索“阻止连接”——这允许父/子关系。Solr不会像ES那样对用户友好,它会让您产生更多的低级别问题。这有点像是一种功能与易用性的折衷。