RankQuery Method

Stot

Stot

Ranker..::..RankQuery Method

Ranks the query.

Namespace:  Engine
Assembly:  Engine (in Engine.dll)

Syntax


public static List<Document> RankQuery(
	List<string> query,
	Dictionary<Document, Dictionary<string, List<int>>> Results,
	int documentCount
)
Public Shared Function RankQuery ( _
	query As List(Of String), _
	Results As Dictionary(Of Document, Dictionary(Of String, List(Of Integer))), _
	documentCount As Integer _
) As List(Of Document)
public:
static List<Document^>^ RankQuery(
	List<String^>^ query, 
	Dictionary<Document^, Dictionary<String^, List<int^>^>^>^ Results, 
	int^ documentCount
)

Parameters

query
Type: List<(Of <(<'String>)>)>
The query.
Results
Type: Dictionary<(Of <(<'Document, Dictionary<(Of <(<'String, List<(Of <(<'Int32>)>)>>)>)>>)>)>
A dictionary whose keys are documents and values, an array of the frequencies (in ascending order) each word in the query is found in this document.
documentCount
Type: Int32
The total number of Documents in the database.

Return Value

A list of documents in descending order of relevance