Fork me on GitHub
Search Results for

    Show / Hide Table of Contents

    delete-segments

    Name

    index-delete-segments - Deletes segments from an index.

    Synopsis

    lucene index delete-segments <INDEX_DIRECTORY> <SEGMENT>[ <SEGMENT_2>...] [?|-h|--help]
    

    Description

    Deletes segments from an index.

    Warning

    You can easily accidentally remove segments from your index, so be careful! Always make a backup of your index first.

    Arguments

    INDEX_DIRECTORY

    The directory of the index.

    SEGMENT

    The segments to delete, separated by a space.

    Options

    ?|-h|--help

    Prints out a short help for the command.

    Example

    Delete the segments named _8c and _83 from the index located at X:\category-data\:

    lucene index delete-segments X:\category-data _8c _83
    
    • 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.