Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Classes | Public Member Functions | List of all members
Lucene.Net.Search.Payloads.PayloadNearQuery Class Reference

This class is very similar to Lucene.Net.Search.Spans.SpanNearQuery except that it factors in the value of the payloads located at each of the positions where the Lucene.Net.Search.Spans.TermSpans occurs. In order to take advantage of this, you must override Lucene.Net.Search.Similarity.ScorePayload which returns 1 by default. Payload scores are aggregated using a pluggable PayloadFunction. More...

Inherits SpanNearQuery, and ICloneable.

Classes

class  PayloadNearSpanScorer
 
class  PayloadNearSpanWeight
 

Public Member Functions

 PayloadNearQuery (SpanQuery[] clauses, int slop, bool inOrder)
 
 PayloadNearQuery (SpanQuery[] clauses, int slop, bool inOrder, PayloadFunction function)
 
override Weight CreateWeight (Searcher searcher)
 
override System.Object Clone ()
 
override System.String ToString (System.String field)
 
override int GetHashCode ()
 
override bool Equals (System.Object obj)
 

Detailed Description

This class is very similar to Lucene.Net.Search.Spans.SpanNearQuery except that it factors in the value of the payloads located at each of the positions where the Lucene.Net.Search.Spans.TermSpans occurs.

In order to take advantage of this, you must override Lucene.Net.Search.Similarity.ScorePayload which returns 1 by default.

Payload scores are aggregated using a pluggable PayloadFunction.

See Also
Lucene.Net.Search.Similarity.ScorePayload

Definition at line 52 of file PayloadNearQuery.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.Payloads.PayloadNearQuery.PayloadNearQuery ( SpanQuery[]  clauses,
int  slop,
bool  inOrder 
)

Definition at line 57 of file PayloadNearQuery.cs.

Lucene.Net.Search.Payloads.PayloadNearQuery.PayloadNearQuery ( SpanQuery[]  clauses,
int  slop,
bool  inOrder,
PayloadFunction  function 
)

Definition at line 61 of file PayloadNearQuery.cs.

Member Function Documentation

override System.Object Lucene.Net.Search.Payloads.PayloadNearQuery.Clone ( )

Definition at line 72 of file PayloadNearQuery.cs.

override Weight Lucene.Net.Search.Payloads.PayloadNearQuery.CreateWeight ( Searcher  searcher)

Definition at line 67 of file PayloadNearQuery.cs.

override bool Lucene.Net.Search.Payloads.PayloadNearQuery.Equals ( System.Object  obj)

Definition at line 120 of file PayloadNearQuery.cs.

override int Lucene.Net.Search.Payloads.PayloadNearQuery.GetHashCode ( )

Definition at line 110 of file PayloadNearQuery.cs.

override System.String Lucene.Net.Search.Payloads.PayloadNearQuery.ToString ( System.String  field)

Definition at line 86 of file PayloadNearQuery.cs.


The documentation for this class was generated from the following file: