lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-516) Add hl.alternateFieldLen parameter, to set max length for hl.alternateField
Date Sat, 29 Mar 2008 06:54:24 GMT

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

Koji Sekiguchi updated SOLR-516:
--------------------------------

    Attachment: SOLR-516.patch

> Add hl.alternateFieldLen parameter, to set max length for hl.alternateField
> ---------------------------------------------------------------------------
>
>                 Key: SOLR-516
>                 URL: https://issues.apache.org/jira/browse/SOLR-516
>             Project: Solr
>          Issue Type: Improvement
>          Components: highlighter
>            Reporter: Koji Sekiguchi
>            Priority: Trivial
>         Attachments: SOLR-516.patch
>
>
> USE CASE:
> You have a document that is composed of (short) title and (long) body fields and want
body to be highlighted.
> In order to avoid highlighted body field to be empty, you can use hl.alternateField parameter.
> Although you want to set f.body.hl.alternateField=body, you may set f.body.hl.alternateField=title,
> because response time is awful when the body values are big. But the title field provides
users with
> information smaller than body field.
> In this case, you can use f.body.hl.alternateFieldLen=100 to limit the body length to
100 characters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message