Solr分布式搜索返回空文档列表

Solr分布式搜索返回空文档列表,solr,solrcloud,Solr,Solrcloud,我在云模式下运行Solr 4.10,每天配置多个集合1。结构如下图所示。如果我查询单个集合,我可以获取给定查询的文档。然而,当我向多个碎片发送分布式请求时,我只看到numFound,没有返回任何文档。感谢任何关于安装的提示 我还尝试创建覆盖多个集合的alias。但结果还是一样 --- directory structure: solr collection1 //(does not have any index) col

我在云模式下运行Solr 4.10,每天配置多个集合1。结构如下图所示。如果我查询单个集合,我可以获取给定查询的文档。然而,当我向多个碎片发送分布式请求时,我只看到numFound,没有返回任何文档。感谢任何关于安装的提示

我还尝试创建覆盖多个集合的alias。但结果还是一样

--- directory structure:
    solr
        collection1                   //(does not have any index)
        collection_20150112
        collection_20150113
运行Solr的命令: sh bin/solr重启-d示例-cloud-p 9999-noprompt

Set up RequestHandler called alias in solrconfig.xml of collecton1

  <requestHandler name="/alias" class="solr.StandardRequestHandler" default="true">
     <lst name="defaults">
       <str name="echoParams">explicit</str>
       <str name="wt">json</str>
       <str name="indent">true</str>
       <str name="df">text</str>
       <str name="fl">score,*</str>
       <str name="shards">http://localhost:9999/solr/collection_20150113,http://localhost:9999/solr/collection_20150112</str>
     </lst>

http://localhost:9999/solr/collection1/alias?q=domain:com&debug=false&shard.info=true&fl=*
e.g
{
responseHeader: 
{
status: 0,
QTime: 19,
params: 
{
q: "domain:com",
debug: "false",
shard.info: "true"
}
},
response: 
{
numFound: 11696,
start: 0,
maxScore: 1.3015664,
docs: [ ]
}
}

好吧,我也有同样的问题。这里提供了解决方案:

基本上,我的唯一ID使用了不区分大小写的字符串类型,这导致了get字段查找问题。将UID字段更改为字符串更正了get字段的查找,并修复了空文档列表

{
responseHeader: {
status: 0,
QTime: 9,
params: {
fl: "id",
q: "domain:com",
wt: "json",
rows: "2"
}
},
response: {
numFound: 1386,
start: 0,
maxScore: 2.164481,
docs: [
{
id: "1c3781d3-bb28-4060-9150-09b0cc9d0084"
},
{
id: "d3e45451-0b75-4eb2-9740-3a139c182359"
}
]
}
}