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

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

bq: Would this be significantly more work for Solr than what it does for 
deleteByQuery?

Absolutely. deleteByQuery just marks each doc as deleted, which is a _much_ 
cheaper operation than re-indexing each and every one of the affected docs. 
e.g. updating by a q=*:* would re-index every document in the corpus, possibly 
billions.

DocValues still wouldn't be cheap in this case, but not nearly as bad as 
arbitrary fields. And do note that DocValues are limited to non-text types 
(string, numeric and the like). But that's most often the use-case here I think.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to