[jira] [Commented] (LUCENE-8409) Cannot delete individual fields from index

2018-07-18 Thread Michael McCandless (JIRA)


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

Michael McCandless commented on LUCENE-8409:


You should be able to make a {{FilterDirectoryReader}} that "pretends" your 
single valued field was in fact multi valued, then wrap that in 
{{SlowCodecReaderWrapper}} then pass that to {{IndexWriter.addIndexes}}?  It 
will be quite costly though, since it's a full rewrite of the index.

> Cannot delete individual fields from index
> --
>
> Key: LUCENE-8409
> URL: https://issues.apache.org/jira/browse/LUCENE-8409
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Cetra Free
>Priority: Major
>
> This is based upon the following tickets:
> https://issues.apache.org/jira/browse/SOLR-12185
> https://issues.apache.org/jira/browse/LUCENE-8235
> I'd like a way to be able to clear and recreate a specific field so I don't 
> have to completely reindex if I change a field type.
> It's a real pain if you change a specific field from single valued to 
> multivalued, you have to delete the entire index from disk and start from 
> scratch.
> As being able to modify a field is not an [intended 
> feature|https://issues.apache.org/jira/browse/LUCENE-8235?focusedCommentId=16530918&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16530918],
>  It'd be preferable if a field could be at least deleted and recreated to 
> deal with this scenario.
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8409) Cannot delete individual fields from index

2018-07-17 Thread Alexandre Rafalovitch (JIRA)


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

Alexandre Rafalovitch commented on LUCENE-8409:
---

I seem to remember the discussion about doing segment-by-segment rewrite with 
some sort of filtered reader that would clear the remove fields in process. But 
I cannot find the discussion of whether it was fully relevant.

But yes I agree that it is quite problematic in terms of index evolution.

> Cannot delete individual fields from index
> --
>
> Key: LUCENE-8409
> URL: https://issues.apache.org/jira/browse/LUCENE-8409
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Cetra Free
>Priority: Major
>
> This is based upon the following tickets:
> https://issues.apache.org/jira/browse/SOLR-12185
> https://issues.apache.org/jira/browse/LUCENE-8235
> I'd like a way to be able to clear and recreate a specific field so I don't 
> have to completely reindex if I change a field type.
> It's a real pain if you change a specific field from single valued to 
> multivalued, you have to delete the entire index from disk and start from 
> scratch.
> As being able to modify a field is not an [intended 
> feature|https://issues.apache.org/jira/browse/LUCENE-8235?focusedCommentId=16530918&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16530918],
>  It'd be preferable if a field could be at least deleted and recreated to 
> deal with this scenario.
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (LUCENE-8409) Cannot delete individual fields from index

2018-07-17 Thread Erick Erickson (JIRA)


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

Erick Erickson commented on LUCENE-8409:


Hmm, we already have UnInvertingblahblah, I wonder if it could be extended?

> Cannot delete individual fields from index
> --
>
> Key: LUCENE-8409
> URL: https://issues.apache.org/jira/browse/LUCENE-8409
> Project: Lucene - Core
>  Issue Type: Bug
>Reporter: Cetra Free
>Priority: Major
>
> This is based upon the following tickets:
> https://issues.apache.org/jira/browse/SOLR-12185
> https://issues.apache.org/jira/browse/LUCENE-8235
> I'd like a way to be able to clear and recreate a specific field so I don't 
> have to completely reindex if I change a field type.
> It's a real pain if you change a specific field from single valued to 
> multivalued, you have to delete the entire index from disk and start from 
> scratch.
> As being able to modify a field is not an [intended 
> feature|https://issues.apache.org/jira/browse/LUCENE-8235?focusedCommentId=16530918&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16530918],
>  It'd be preferable if a field could be at least deleted and recreated to 
> deal with this scenario.
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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