I can't find a decent documentation on how to make updates to solr using pysolr.
相关问题
- Solr Deduplication (dedupe) giving all zeros in si
- Solr (Sunspot), max results more than 30?
- Lucene Query on a DateField indexed by Solr
- How to token a word which combined by two words wi
- How to import data from mongodb to apache solr usi
相关文章
- Solr - _version_ field must exist in schema and be
- SolrNet - Score always 0
- How can use the /export request handler via SolrJ?
- request counting for documents in apache solr
- How to search records between two coordinates usin
- Boost result by specified search term on top
- Faceted searching and categories in MySQL and Solr
- How to read data from solr/data/index
Using the same unique Solr ID and writing as usual (with solr.add) will overwrite/update the document. So, you can just write the new document setting the unique ID to match the old one that you want to update or you can pull the old document, do the change and gain make a new write using that updated document; since its the same ID you will still be overwriting/updating.
You cannot currently make atomic updates to Solr using PySolr. There is a pull for it:
https://github.com/toastdriven/pysolr/pull/99
But it's not yet been merged. Last comment was less than a month ago, if you are interested I'd comment on it - or try to merge the code yourself if you feel up to it.
As of November 2014 atomic updates are supported with pysolr. Here's a simple example: