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
    
    MoreLikeThisQuery
   
  
    Inherited Members
    
    
    
    
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
   
  
  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
  
  
    |
    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 | 
      
    
    
      
        | System.Collections.Generic.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 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  GetHashCode()
  
  
  Declaration
  
    public override int GetHashCode()
   
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Int32 | 
         | 
      
    
  
  Overrides
  
  
    |
    Improve this Doc
  
  
    View Source
  
  
  Rewrite(IndexReader)
  
  
  Declaration
  
    public override Query Rewrite(IndexReader reader)
   
  Parameters
  
  Returns
  
  Overrides
  
  
    |
    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 | 
         | 
      
    
  
  Overrides