Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FileBasedQueryMaker

    Create queries from a System.IO.FileStream. One per line, pass them through the QueryParser. Lines beginning with # are treated as comments.

    Inheritance
    System.Object
    AbstractQueryMaker
    FileBasedQueryMaker
    Implements
    IQueryMaker
    Inherited Members
    AbstractQueryMaker.m_qnum
    AbstractQueryMaker.m_queries
    AbstractQueryMaker.m_config
    AbstractQueryMaker.ResetInputs()
    AbstractQueryMaker.SetConfig(Config)
    AbstractQueryMaker.PrintQueries()
    AbstractQueryMaker.MakeQuery()
    AbstractQueryMaker.NextQnum()
    AbstractQueryMaker.MakeQuery(Int32)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Feeds
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class FileBasedQueryMaker : AbstractQueryMaker, IQueryMaker
    Remarks

    File can be specified as a absolute, relative or resource. Two properties can be set:

    • file.query.maker.file<Full path to file containing queries>
    • file.query.maker.default.field<Name of default field - Default value is "body">

    Example:

    file.query.maker.file=c:/myqueries.txt
    file.query.maker.default.field=body

    Methods

    | Improve this Doc View Source

    PrepareQueries()

    Declaration
    protected override Query[] PrepareQueries()
    Returns
    Type Description
    Lucene.Net.Search.Query[]
    Overrides
    AbstractQueryMaker.PrepareQueries()

    Implements

    IQueryMaker
    • 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.