|
Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Public Member Functions | |
| FastVectorHighlighter () | |
| the default constructor. | |
| FastVectorHighlighter (bool phraseHighlight, bool fieldMatch) | |
| a constructor. Using SimpleFragListBuilder and ScoreOrderFragmentsBuilder. | |
| FastVectorHighlighter (bool phraseHighlight, bool fieldMatch, FragListBuilder fragListBuilder, FragmentsBuilder fragmentsBuilder) | |
| a constructor. A FragListBuilder and a FragmentsBuilder can be specified (plugins). | |
| FieldQuery | GetFieldQuery (Query query) |
| create a FieldQuery object. | |
| String | GetBestFragment (FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize) |
| return the best fragment. | |
| String[] | GetBestFragments (FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, int maxNumFragments) |
| return the best fragments. | |
| bool | IsPhraseHighlight () |
| return whether phraseHighlight or not. | |
| bool | IsFieldMatch () |
| return whether fieldMatch or not. | |
Static Public Attributes | |
| static bool | DEFAULT_PHRASE_HIGHLIGHT = true |
| static bool | DEFAULT_FIELD_MATCH = true |
Properties | |
| int | PhraseLimit [get, set] |
| The maximum number of phrases to analyze when searching for the highest-scoring phrase. The default is 5000. To ensure that all phrases are analyzed, use a negative number or Integer.MAX_VALUE. | |
Definition at line 26 of file FastVectorHighlighter.cs.
| Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.FastVectorHighlighter | ( | ) |
the default constructor.
Definition at line 40 of file FastVectorHighlighter.cs.
| Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.FastVectorHighlighter | ( | bool | phraseHighlight, |
| bool | fieldMatch | ||
| ) |
a constructor. Using SimpleFragListBuilder and ScoreOrderFragmentsBuilder.
| phraseHighlight | true or false for phrase highlighting |
| fieldMatch | true of false for field matching |
Definition at line 49 of file FastVectorHighlighter.cs.
| Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.FastVectorHighlighter | ( | bool | phraseHighlight, |
| bool | fieldMatch, | ||
| FragListBuilder | fragListBuilder, | ||
| FragmentsBuilder | fragmentsBuilder | ||
| ) |
a constructor. A FragListBuilder and a FragmentsBuilder can be specified (plugins).
| phraseHighlight | true of false for phrase highlighting |
| fieldMatch | true of false for field matching |
| fragListBuilder | an instance of FragListBuilder |
| fragmentsBuilder | an instance of FragmentsBuilder |
Definition at line 60 of file FastVectorHighlighter.cs.
| String Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.GetBestFragment | ( | FieldQuery | fieldQuery, |
| IndexReader | reader, | ||
| int | docId, | ||
| String | fieldName, | ||
| int | fragCharSize | ||
| ) |
return the best fragment.
| fieldQuery | FieldQuery object |
| reader | IndexReader of the index |
| docId | document id to be highlighted |
| fieldName | field of the document to be highlighted |
| fragCharSize | the length (number of chars) of a fragment |
Definition at line 89 of file FastVectorHighlighter.cs.
| String [] Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.GetBestFragments | ( | FieldQuery | fieldQuery, |
| IndexReader | reader, | ||
| int | docId, | ||
| String | fieldName, | ||
| int | fragCharSize, | ||
| int | maxNumFragments | ||
| ) |
return the best fragments.
| fieldQuery | FieldQuery object |
| reader | IndexReader of the index |
| docId | document id to be highlighted |
| fieldName | field of the document to be highlighted |
| fragCharSize | the length (number of chars) of a fragment |
| maxNumFragments | maximum number of fragments |
Definition at line 106 of file FastVectorHighlighter.cs.
| FieldQuery Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.GetFieldQuery | ( | Query | query | ) |
create a FieldQuery object.
| query | a query |
Definition at line 74 of file FastVectorHighlighter.cs.
| bool Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.IsFieldMatch | ( | ) |
return whether fieldMatch or not.
Definition at line 134 of file FastVectorHighlighter.cs.
| bool Lucene.Net.Search.Vectorhighlight.FastVectorHighlighter.IsPhraseHighlight | ( | ) |
return whether phraseHighlight or not.
Definition at line 125 of file FastVectorHighlighter.cs.
|
static |
Definition at line 30 of file FastVectorHighlighter.cs.
|
static |
Definition at line 29 of file FastVectorHighlighter.cs.
|
getset |
The maximum number of phrases to analyze when searching for the highest-scoring phrase. The default is 5000. To ensure that all phrases are analyzed, use a negative number or Integer.MAX_VALUE.
Definition at line 145 of file FastVectorHighlighter.cs.
1.8.3