Re: Delete fields from document using a wildcard

2014-04-29 Thread Costi Muraru
I've opened an issue: https://issues.apache.org/jira/browse/SOLR-6034 Feedback in Jira is appreciated. On Tue, Apr 29, 2014 at 8:34 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > I think this is useful as well. Can you open an issue? > > > On Tue, Apr 29, 2014 at 7:53 PM, Shawn Hei

Re: Delete fields from document using a wildcard

2014-04-29 Thread Shalin Shekhar Mangar
I think this is useful as well. Can you open an issue? On Tue, Apr 29, 2014 at 7:53 PM, Shawn Heisey wrote: > On 4/29/2014 5:25 AM, Costi Muraru wrote: > > The problem is, I don't know the exact names of the fields I want to > > remove. All I know is that they end in *_1600_i. > > > > When remo

Re: Delete fields from document using a wildcard

2014-04-29 Thread Shawn Heisey
On 4/29/2014 5:25 AM, Costi Muraru wrote: > The problem is, I don't know the exact names of the fields I want to > remove. All I know is that they end in *_1600_i. > > When removing fields from a document, I want to avoid querying SOLR to see > what fields are actually present for the specific doc

Re: Delete fields from document using a wildcard

2014-04-29 Thread Costi Muraru
Thanks, Alex for the input. Let me provide a better example on what I'm trying to achieve. I have documents like this: 100 1 5 7 The schema looks the usual way: The dynamic field pattern I'm using is this: id_day_i. Each day I want to add new fields for the current day and remove the fields

Re: Delete fields from document using a wildcard

2014-04-28 Thread Alexandre Rafalovitch
Not out of the box, as far as I know. Custom UpdateRequestProcessor could possibly do some sort of expansion of the field name by verifying the actual schema. Not sure if API supports that level of flexibility. Or, for latest Solr, you can request the list of known field names via REST and do clie

Delete fields from document using a wildcard

2014-04-28 Thread Costi Muraru
Hi guys, Would be possible, using Atomic Updates in SOLR4, to remove all fields matching a pattern? For instance something like: 100 <*field name="*_name_i" update="set" null="true">* Or something similar to remove certain fields in all documents. Thanks, Costi