You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by KARTHIK SHIVAKUMAR <ns...@gmail.com> on 2023/05/23 06:56:40 UTC
QueryResponse not working as Expected
*Spec* : OpenJDK 17.03.5 , Apache -Solr 9.2.0 , win10
*Requirement* : Convert Solr Search Results to Pojo.
*Status of Indexing * : 1000 Documents indexed to Core Successfully and
are visible in Solar Admin Query
*Status of Query*
in Admin :
{
"ImageFileCategory":"TestImageCategory",
"ImageFileAbsolutePath":"G:/oldmobile/IMG_20200115_183219.jpg",
"ImageSizeWidthHeight":"4224##3136",
"ImageOfEncryptType":"MD5",
"ImageFileToEncrypt":"MHtTKP5V2GOF5b1j1ATFoQ==",
"ImageMetaInfo":"JPEG,[8 bits, 3136 pixels, 4224 pixels, .....
Wed Jan 15 18:32:21 +05:30 2020]",
"ImageMetaEncrypt":"3XbrLe3BBeZVQDKP1Q+gnQ==",
"ImageFileExtntype":"jpg",
"DateofFileCreation":"1678863719089",
"DateofFileModification":"1579093341000",
"DateofFileAccess":"1684733256616",
"id":"892ac142-8c5a-4280-8349-f8000fcefd85",
"_version_":1766570979549511680
},
ex :
*SolrQuery sQrySrch = new SolrQuery("*.*");*
*QueryResponse reSpnsQrye = SolrClnt_.query(sQrySrch);*
*List<SolrImageBean> lstSolrImgBn =
reSpnsQrye.getBean("SolrImageBean.class")*
*Problem* : QueryResponse used for SearchQuery to Pojo using
Solrj library in Java code is returning null values
23:May:2023:12:17:16.765 [main] DEBUG
com.toolx.test.indededsearchtoPojo.SearchPojo,LineNo: 69 - >>>>
SolrImageBean [
solrImageCategory = NA
solrFileAbsolutePath = null
DateofFileCreation = null
DateofFileModification = null
DateofFileAccess = null
solrimagetoEncrypt = null
solrimageMetadata = null
solrimageMetadataEncrypt = null
solrFileExtn = null
solrEncryptType = null
xSize = -1
ySize = -1]
--
*with regards*
*N.S.KARTHIK*