solrj

solrj api for partial document update

心不动则不痛 提交于 2019-11-27 11:56:15
Solr 4 beta is out, the GA version will follow soon. Partial document updates has been around for a while as explained here: http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/ However, I haven't figured out how to do it with solrj api. Does anyone knows if it is possible with solrj? Or is solrj just not up-to-speed with this feature? update: as I describe in the mailing list (see reply here ), I found that in the solrj api, the value of a SolrInputField can be a map - it doesn't have to be a simple scalar value. If it is a map, solrj adds an additional update attribute to the

How can I get a list of all the cores in a solr server using SolrJ

流过昼夜 提交于 2019-11-27 02:17:16
问题 We are using Solr for our searches, and sharding the data across several cores. We have one core per week of data, so we are dynamically creating and deleting cores each week. How can I query a solr server for a list of all its cores? The JavaDoc says I can use coreAdminHandler.getCoreContainer().getCoreNames() , but I'm not sure how to build a coreAdminHandler object. 回答1: A request to http://localhost:8983/solr/admin/cores?action=STATUS (replace your own host/port of course) will return all

Retrieve Object from Solr

元气小坏坏 提交于 2019-11-26 21:41:56
问题 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 retrieve information via REST API in JSON , using Gson library . I convert the Json into POJO's that I use to display information. Now I want to implement search feature in my project, so I installed Solr on a separate server, what I want is: Index the JSON in solr server for all 3 services. fetch search result from Solr in form of POJO's

solrj api for partial document update

梦想与她 提交于 2019-11-26 13:09:04
问题 Solr 4 beta is out, the GA version will follow soon. Partial document updates has been around for a while as explained here: http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/ However, I haven\'t figured out how to do it with solrj api. Does anyone knows if it is possible with solrj? Or is solrj just not up-to-speed with this feature? update: as I describe in the mailing list (see reply here), I found that in the solrj api, the value of a SolrInputField can be a map - it doesn\'t