Fork me on GitHub
Search Results for

    Show / Hide Table of Contents

    copy-segments

    Name

    index-copy-segments - Copies segments from one index to another index.

    Synopsis

    lucene index copy-segments <INPUT_DIRECTORY> <OUTPUT_DIRECTORY> <SEGMENT>[ <SEGMENT_2>...] [?|-h|--help]
    

    Description

    This tool does file-level copying of segments files. This means it's unable to split apart a single segment into multiple segments. For example if your index is a single segment, this tool won't help. Also, it does basic file-level copying (using simple FileStream) so it will not work with non FSDirectory Directory implementations.

    Arguments

    INPUT_DIRECTORY

    The directory of the index to copy.

    OUTPUT_DIRECTORY

    The directory of the destination index.

    SEGMENT, SEGMENT_2

    The segments to copy, separated by a space.

    Options

    ?|-h|--help

    Prints out a short help for the command.

    Example

    Copy the _71_Lucene41_0 segment from the index located at X:\lucene-index to the index located at X:\output:

    lucene index copy-segments X:\lucene-index X:\output _71_Lucene41_0
    
    • Improve this Doc
    In This Article
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.