![]() ![]() After accumulating stats, the fragments with the highest scoresĪre returned in order as "separator" delimited strings. ![]() Highlights terms in the text, extracting the most relevant sectionsĪnd concatenating the chosen fragments with a separator (typically ".").Īcross the document. getBestFragments public final String getBestFragments( Analyzer analyzer,.text - text to highlight terms in Returns: highlighted text fragment or null if no terms found Throws: InvalidTokenOffsetsException - thrown if any token's endOffset exceeds the provided text's length IOException Index but this support is not currently available (as of Lucene 1.4 rc2). Some work may be done on retrieving TokenStreams more efficientlyīy adding support for storing original text position data in the Lucene This is typically produced by an analyzer re-parsing a document's Is returned Parameters: tokenStream - a stream of tokens identified in the text parameter, including offset information. After accumulating stats, the fragment with the highest score The document text is analysed in chunks to record hit statisticsĪcross the document. Highlights chosen terms in a text, extracting the most relevant section. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |