Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Enum Occur

    Specifies how clauses are to occur in matching documents.

    Namespace: Lucene.Net.Search
    Assembly: Lucene.Net.dll
    Syntax
    public enum Occur

    Fields

    Name Description
    MUST

    Use this operator for clauses that must appear in the matching documents.

    MUST_NOT

    Use this operator for clauses that must not appear in the matching documents. Note that it is not possible to search for queries that only consist of a MUST_NOT clause.

    SHOULD

    Use this operator for clauses that should appear in the matching documents. For a BooleanQuery with no MUST clauses one or more SHOULD clauses must match a document for the BooleanQuery to match.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.