ColdFusionでVerityコレクションの名前を変更するにはどうすればよいですか?
-
03-07-2019 - |
質問
ColdFusionの既存のVerityコレクションの名前を変更するには、コレクションを削除、再作成、再構築する必要があります。問題は、削除して再構築する必要がない非常に大きなコレクションがあることです。誰もこの難問に便利なトリックを持っていますか?
解決
Verityパーツの場合(ColdFusionを考慮せずに)、コレクションをデタッチし、名前を変更して、再度アタッチするのは簡単です:
rcadmin> indexdetach
Server Alias:YourDocserver
Index Alias:CollectionName
Index Type [(c)ollection,(t)ree,(p)arametric,(r)ecommendation]:c
Save changes? [y|n]:y
<<Return>> SUCCESS
rcadmin> collpurge
Collection alias:CollectionName
Admin Alias:AdminServer
Save changes? [y|n]:y
<<Return>> SUCCESS
rcadmin> adminsignal
Admin Alias:AdminServer
Type of signal (Shutdown=2,WSRefresh=3,RestartAllServers=4):4
Save changes? [y|n]:y
<<Return>> SUCCESS
これで、コレクションディレクトリの名前を変更し、再接続できます。 (これらの値が不明な場合は、オフラインにする前にcollgetで確認してください。)
rcadmin> collset
Admin Alias:AdminServer
Collection Alias:NewCollectionName
Modify Type (Update=0, Insert=1):1
Path:
Gateway[(o)dbc|(n)otes|(e)xchange|(d)ocumentum|(f)ilesys|(w)eb|o(t)her]:
Style Alias:
Document Access (Public=0,Secure=1,Anonymous=2):
Query Parser [(s)imple|(b)oolPlus|(f)reeText|(o)ldFreeText|O(l)dSimple|O(t)her]:
Description:
Max. Search Time(msecs):
Save changes? [y|n]:y
rcadmin> indexattach
Index Alias:NewCollectionName
Index Type [(c)ollection,(t)ree,(p)arametric,(r)ecommendation]:c
Server Alias:YourDocserver
Modify Type (Update=0, Insert=1):1
Index State (offline=0,hidden=1,online=2):2
Threads (default=3):
Save changes? [y|n]:y
<<Return>> SUCCESS
「階層ビュー」に再び表示されるはずです。
「結合」を使用することもできますあるコレクションから別のコレクションにコンテンツを新しい名前でコピーするユーティリティ。
他のヒント
Verityコレクションの名前を変更する簡単な方法があるとは思わない。いつでも使用できます
<cfcollection action="map" ...>
既存のコレクションにエイリアスを割り当てるには、元の名前を再利用する必要はありません。
このように見えることは不可能です。目的の名前でコレクションを削除して再作成することが、利用可能な唯一のアプローチのようです。
所属していません StackOverflow