You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2010/07/02 23:07:49 UTC
[jira] Commented: (SOLR-461) Highlighting TokenStream Truncation
capability
[ https://issues.apache.org/jira/browse/SOLR-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12884806#action_12884806 ]
Uwe Schindler commented on SOLR-461:
------------------------------------
The TokenFilter for limiting Token count is already in Lucene 3.x and trunk: LimitTokenCountFilter and a Wrapping Analyzer that adds this filter on top of any existing Analyzer. I think somebody already added it to Solr, too, dont know the issue, but have seen it.
> Highlighting TokenStream Truncation capability
> ----------------------------------------------
>
> Key: SOLR-461
> URL: https://issues.apache.org/jira/browse/SOLR-461
> Project: Solr
> Issue Type: Improvement
> Components: highlighter
> Reporter: Grant Ingersoll
> Assignee: Grant Ingersoll
> Priority: Minor
> Attachments: SOLR-461.patch
>
>
> It is sometimes the case when generating snippets that one need not fragment/analyze the whole document (especially for large documents) in order to show meaningful snippet highlights.
> Patch to follow that adds a counting TokenFilter that returns null after X number of Tokens have been seen. This filter will then be hooked into the SolrHighlighter and configurable via solrconfig.xml. The default value will be Integer.MAX_VALUE or, I suppose, it could be set to whatever Max Field Length is set to, as well.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org