首页 新闻 会员 周边 捐助

solr查询结果全为null

0
悬赏园豆:20 [已解决问题] 解决于 2018-03-06 10:02

在项目中执行solr查询时,查询结果对应多个对象,但值都是null。程序执行的过程中没有报错,查询结果如下:

{"code":"0","message":"数据获取成功!","result":[{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null},{"uid":null,"head":null,"name":null,"gender":null,"genderText":null,"company":null,"position":null,"positionText":null,"labels":null,"joinYear":null,"joinYearText":"无工作年限","region":null,"regionText":null,"isFirend":null,"interests":null,"skill":null}],"obj":null,"dateTime":"2017-11-11 17:06:32"}
但是,将solr查询接口复制一份到另外一个工程中,查询没有任何问题,可以查到数据,并且显示没问题。

shaoyp的主页 shaoyp | 初学一级 | 园豆:25
提问于:2017-11-11 10:52
< >
分享
最佳答案
0

你这问题没头没尾,没人能解答的了。

收获园豆:20
Daniel Cai | 专家六级 |园豆:10424 | 2017-11-11 17:03

写的太着急,详细问题已经粘贴出来了,希望大神帮忙看一下,刚接触solr,很多内容还在学习阶段

shaoyp | 园豆:25 (初学一级) | 2017-11-11 17:12

@shaoyp: 这个我感觉好像和solr没太大关系,你这输出的应该是你自己对原始solr响应加工后的结果了吧。

Daniel Cai | 园豆:10424 (专家六级) | 2017-11-11 17:18
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册