Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FileBasedQueryMaker

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

    Inheritance
    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(int)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

    PrepareQueries()

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

    Declaration
    protected override Query[] PrepareQueries()
    Returns
    Type Description
    Query[]
    Overrides
    AbstractQueryMaker.PrepareQueries()
    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

    Implements

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