Show / Hide Table of Contents

    Class MoreLikeThisQuery

    A simple wrapper for MoreLikeThis for use in scenarios where a Query object is required eg in custom QueryParser extensions. At query.Rewrite() time the reader is used to construct the actual MoreLikeThis object and obtain the real Query object.

    Inheritance
    System.Object
    Query
    MoreLikeThisQuery
    Inherited Members
    Query.Boost
    Query.ToString()
    Query.CreateWeight(IndexSearcher)
    Lucene.Net.Search.Query.ExtractTerms(ISet<>)
    Query.Clone()
    Namespace: Lucene.Net.Queries.Mlt
    Assembly: Lucene.Net.Queries.dll
    Syntax
    public class MoreLikeThisQuery : Query

    Constructors

    | Improve this Doc View Source

    MoreLikeThisQuery(String, String[], Analyzer, String)

    Declaration
    public MoreLikeThisQuery(string likeText, string[] moreLikeFields, Analyzer analyzer, string fieldName)
    Parameters
    Type Name Description
    System.String likeText
    System.String[] moreLikeFields

    fields used for similarity measure

    Analyzer analyzer
    System.String fieldName

    Properties

    | Improve this Doc View Source

    Analyzer

    Declaration
    public virtual Analyzer Analyzer { get; set; }
    Property Value
    Type Description
    Analyzer
    | Improve this Doc View Source

    LikeText

    Declaration
    public virtual string LikeText { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    MaxQueryTerms

    Declaration
    public virtual int MaxQueryTerms { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinDocFreq

    Declaration
    public virtual int MinDocFreq { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    MinTermFrequency

    Declaration
    public virtual int MinTermFrequency { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    MoreLikeFields

    Declaration
    public virtual string[] MoreLikeFields { get; set; }
    Property Value
    Type Description
    System.String[]
    | Improve this Doc View Source

    PercentTermsToMatch

    Declaration
    public virtual float PercentTermsToMatch { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    StopWords

    Declaration
    public virtual ISet<string> StopWords { get; set; }
    Property Value
    Type Description
    ISet<System.String>

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    Query.GetHashCode()
    | Improve this Doc View Source

    Rewrite(IndexReader)

    Declaration
    public override Query Rewrite(IndexReader reader)
    Parameters
    Type Name Description
    IndexReader reader
    Returns
    Type Description
    Query
    Overrides
    Query.Rewrite(IndexReader)
    | Improve this Doc View Source

    ToString(String)

    Declaration
    public override string ToString(string field)
    Parameters
    Type Name Description
    System.String field
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)