Fork me on GitHub
Search Results for

    Show / Hide Table of Contents

    Lucene.NET command line interface (CLI) tools

    The Lucene.NET command line interface (CLI) is a new cross-platform toolchain with utilities for maintaining Lucene.NET and demos for learning basic Lucene.NET functionality.

    Prerequisites

    • .NET Core 3.1.0 Runtime

    Installation

    Perform a one-time install of the lucene-cli tool using the following dotnet CLI command:

    dotnet tool install lucene-cli -g --version 4.8.0-beta00015
    
    Note

    The version of the CLI you install should match the version of Lucene.NET you use.

    You may then use the lucene-cli tool to analyze and update Lucene.NET indexes and use its demos.

    CLI Commands

    The following commands are installed:

    • analysis
    • demo
    • index
    • lock

    Command structure

    CLI command structure consists of the driver ("lucene"), the command, and possibly command arguments and options. You see this pattern in most CLI operations, such as checking a Lucene.NET index for problematic segments and fixing (removing) them:

    lucene index check C:\my-index --verbose
    lucene index fix C:\my-index
    
    • 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.