Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SearchFiles

    Simple command-line based search demo.

    Inheritance
    object
    SearchFiles
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Demo
    Assembly: Lucene.Net.Demo.dll
    Syntax
    public static class SearchFiles

    Methods

    DoPagingSearch(IndexSearcher, Query, int, bool, bool)

    This demonstrates a typical paging search scenario, where the search engine presents pages of size n to the user. The user can then go to the next page if interested in the next hits.

    When the query is executed for the first time, then only enough results are collected to fill 5 result pages. If the user wants to page beyond this limit, then the query is executed another time and all hits are collected.
    Declaration
    public static void DoPagingSearch(IndexSearcher searcher, Query query, int hitsPerPage, bool raw, bool interactive)
    Parameters
    Type Name Description
    IndexSearcher searcher
    Query query
    int hitsPerPage
    bool raw
    bool interactive

    Main(string[])

    Simple command-line based search demo.

    Declaration
    public static void Main(string[] args)
    Parameters
    Type Name Description
    string[] args

    The command line arguments

    Back to top Copyright © 2024 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.