You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Erick Erickson (JIRA)" <ji...@apache.org> on 2015/04/30 06:03:06 UTC

[jira] [Commented] (SOLR-7490) Update by query feature

    [ https://issues.apache.org/jira/browse/SOLR-7490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14520812#comment-14520812 ] 

Erick Erickson commented on SOLR-7490:
--------------------------------------

Problem here is that you don't necessarily have any source to re-index from. Solr doesn't (yet) have any update-in-place, atomic updates only work if all source fields are stored. So this could only possibly work if all the fields in the docs were stored, and could well result in a _massive_ amount of work being done by Solr as the result of a single call.

I guess it might be possible to accommodate this with the updatable docValues, but again that would be a restricted use-case.

It feels like the restrictions are too onerous to make this something that would generate a lot of interest. I'm not opposed to the idea, mind you, but I _do_ need to be persuaded that it's worth the complexity.

And how that would all play with distributed updates and optimistic locking I don't know.

> Update by query feature
> -----------------------
>
>                 Key: SOLR-7490
>                 URL: https://issues.apache.org/jira/browse/SOLR-7490
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Praneeth
>            Priority: Minor
>
> An update feature similar to the {{deleteByQuery}} would be very useful. Say, the user wants to update a field of all documents in the index that match a given criteria. I have encountered this use case in my project and it looks like it could be a useful first class solr/lucene feature. I want to check if this is something we would want to support in coming releases of Solr and Lucene, are there scenarios that will prevent us from doing this, feasibility, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org