C# Class Lucene.Net.Queries.Mlt.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: Lucene.Net.Search.Query
显示文件 Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
MoreLikeThisQuery ( string likeText, string moreLikeFields, Analyzer analyzer, string fieldName ) : System.Collections.Generic
Rewrite ( IndexReader reader ) : Query
ToString ( string field ) : string

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

MoreLikeThisQuery() public method

public MoreLikeThisQuery ( string likeText, string moreLikeFields, Analyzer analyzer, string fieldName ) : System.Collections.Generic
likeText string
moreLikeFields string fields used for similarity measure
analyzer Lucene.Net.Analysis.Analyzer
fieldName string
return System.Collections.Generic

Rewrite() public method

public Rewrite ( IndexReader reader ) : Query
reader Lucene.Net.Index.IndexReader
return Lucene.Net.Search.Query

ToString() public method

public ToString ( string field ) : string
field string
return string