You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Constantin Muraru (JIRA)" <ji...@apache.org> on 2014/04/30 10:48:16 UTC

[jira] [Updated] (SOLR-6034) Use a wildcard in order to delete fields with Atomic Update

     [ https://issues.apache.org/jira/browse/SOLR-6034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Constantin Muraru updated SOLR-6034:
------------------------------------

    Component/s:     (was: contrib - DataImportHandler)

> Use a wildcard in order to delete fields with Atomic Update
> -----------------------------------------------------------
>
>                 Key: SOLR-6034
>                 URL: https://issues.apache.org/jira/browse/SOLR-6034
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 4.7
>            Reporter: Constantin Muraru
>
> As discussed on the SOLR user group, it would a great feature to be able to remove all fields matching a pattern, using Atomic Updates.
> Example:
> <add><doc>
>   <field name="id">100</field>
>   <field name="*_day_i" update="set" null="true"></field>
> </doc></add>
> The *_day_i should be expanded server-side and all fields matching this pattern should be removed from the specified document.
> Workaround: When removing fields from a document, we can make a query to SOLR from the client, in order to see what fields are actually present for the specific document. After that, we can create the XML update document to be sent to SOLR. However, this is going to increase the number of queries to SOLR and for large amount of documents this is going to weigh pretty much. It would be great performance-wise and simplicity-wise to be able to provide wildcards.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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