Method RetrieveTerms
RetrieveTerms(Int32)
Find words for a more-like-this query former.
Declaration
public PriorityQueue<object[]> RetrieveTerms(int docNum)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | docNum | the id of the lucene document from which to find terms |
Returns
Type | Description |
---|---|
PriorityQueue<System.Object[]> |
RetrieveTerms(TextReader, String)
Find words for a more-like-this query former. The result is a priority queue of arrays with one entry for every word in the document. Each array has 6 elements. The elements are:
- The word (
) - The top field that this word comes from (
) - The score for this word (
) - The IDF value (
) - The frequency of this word in the index (
) - The frequency of this word in the source document (
)
Declaration
public PriorityQueue<object[]> RetrieveTerms(TextReader r, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
TextReader | r | the reader that has the content of the document |
System.String | fieldName | field passed to the analyzer to use when analyzing the content |
Returns
Type | Description |
---|---|
PriorityQueue<System.Object[]> | the most interesting words in the document ordered by score, with the highest scoring, or best entry, first |