Retrieve Object from Solr

前端 未结 3 1603
梦毁少年i
梦毁少年i 2020-12-06 14:03

So, I have a java based web project that displays information retrieved from 3 separate services, hosted on different servers, I use Apache Http Client to

3条回答
  •  不思量自难忘°
    2020-12-06 14:43

    Yes that is possible, I was doing some similar thing once. But I think you should write some converter, which would fetch the results from SolrDocumentList and from each SolrDocument put the result to your POJO's.

    Read about setting the query parameters and getting the results with solrj, and I think it wouldn't be a problem for you to do this. The converter itself should be easy to write, because you can access every field indexed from the result. Also pay attention to narrowing the results itself.

    These are some guides, as I don't feel experienced with solr searching. I don't know if it will help you much, but I hope so.

提交回复
热议问题