[
https://issues.apache.org/jira/browse/SOLR-11127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16777262#comment-16777262
]
Andrzej Bialecki commented on SOLR-11127:
------------------------------------------
Implementing a read-only mode for a collection allows us to use a better
solution to this problem:
* create a new unique collection using the new schema, eg.
{{.reindex_<collection>_<seq>}}
* put the source collection in read-only mode. This entails:
** blocking new updates,
** issuing a hard commit
** closing the IndexWriter to make sure there aren't any ongoing background
merges.
* copy all documents from source to the new collection
* create an alias pointing from the source name to the new collection. The new
collection is already in read-write mode by default, and this operation is
atomic.
* optionally delete the original source
In this scenario we never lose the ability to search the source collection, at
the cost of losing the ability to process updates during the reindexing.
BTW. this scenario is applicable to basically any collection, not just the
{{.system}}, with the usual caveats about potentially losing the data from
document fields that can't be retrieved from the source collection.
> Add a Collections API command to migrate the .system collection schema from
> Trie-based (pre-7.0) to Points-based (7.0+)
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-11127
> URL: https://issues.apache.org/jira/browse/SOLR-11127
> Project: Solr
> Issue Type: Task
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Steve Rowe
> Assignee: Andrzej Bialecki
> Priority: Blocker
> Labels: numeric-tries-to-points
> Fix For: 8.0
>
>
> SOLR-11119 will switch the Trie fieldtypes in the .system collection's schema
> to Points.
> Users with pre-7.0 .system collections will no longer be able to use them
> once Trie fields have been removed (8.0).
> Solr should provide a Collections API command MIGRATESYSTEMCOLLECTION to
> automatically convert a Trie-based .system collection to a Points-based one.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]