You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2017/01/06 06:04:58 UTC

[jira] [Updated] (SOLR-9935) When hl.method=unified add support for hl.fragsize param

     [ https://issues.apache.org/jira/browse/SOLR-9935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley updated SOLR-9935:
-------------------------------
    Attachment: SOLR_9935_UH_fragsize.patch

Here's a patch.  The default fragsize chosen is 70 as that is the same used when the regex fragmenter (of the original Highlighter) is used in Solr.  These are both similar in that you typically want to shoot for a passage about a sentence in length.

Note the regex fragmenter has a "slop" feature that is 60% of the fragsize... this is not (yet) supported by the UH's LengthGoalBreakIterator.

When LUCENE-7620 lands (this weekend?), I plan to commit this immediately after.

> When hl.method=unified add support for hl.fragsize param
> --------------------------------------------------------
>
>                 Key: SOLR-9935
>                 URL: https://issues.apache.org/jira/browse/SOLR-9935
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: highlighter
>            Reporter: David Smiley
>            Assignee: David Smiley
>         Attachments: SOLR_9935_UH_fragsize.patch
>
>
> In LUCENE-7620 the UnifiedHighlighter is getting a BreakIterator that allows it to support the equivalent of Solr's {{hl.fragsize}}.  So lets support this on the Solr side.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org