You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2008/03/29 07:52:24 UTC
[jira] Created: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
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
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.
[jira] Resolved: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Klaas resolved SOLR-516.
-----------------------------
Resolution: Fixed
> 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
> Assignee: Mike Klaas
> Priority: Trivial
> Attachments: SOLR-516-solr-ruby.patch, SOLR-516.patch, 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.
[jira] Updated: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
[ 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
Added a test case.
> 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, 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.
[jira] Updated: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Klaas reassigned SOLR-516:
-------------------------------
Assignee: Mike Klaas
> 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
> Assignee: Mike Klaas
> Priority: Trivial
> Attachments: SOLR-516-solr-ruby.patch, SOLR-516.patch, 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.
Re: [jira] Commented: (SOLR-516) Add hl.alternateFieldLen parameter,
to set max length for hl.alternateField
Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
I opened SOLR-537 for solr-ruby as Hoss suggested.
Thank you,
Koji
Chris Hostetter wrote:
> : I have zero familiarity with the ruby side of Solr, so I will leave the issue open for the ruby client patch to be reviewed and applied.
>
> since client work and server work are parallel but distinct, I would
> suggest cloning the issue so the ruby work can be tracked separately.
>
> it makes the issue statuses and CHANGES.txt more reflective of reality.
>
>
>
>
> -Hoss
>
>
>
Re: [jira] Commented: (SOLR-516) Add hl.alternateFieldLen parameter,
to set max length for hl.alternateField
Posted by Chris Hostetter <ho...@fucit.org>.
: I have zero familiarity with the ruby side of Solr, so I will leave the issue open for the ruby client patch to be reviewed and applied.
since client work and server work are parallel but distinct, I would
suggest cloning the issue so the ruby work can be tracked separately.
it makes the issue statuses and CHANGES.txt more reflective of reality.
-Hoss
[jira] Commented: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Mike Klaas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587754#action_12587754 ]
Mike Klaas commented on SOLR-516:
---------------------------------
A quite reasonable addition, thanks!. I commited the core patch but named the parameter hl.maxAlternateFieldLength. Since it is so long anyway, it doesn't hurt to be explicit.
I have zero familiarity with the ruby side of Solr, so I will leave the issue open for the ruby client patch to be reviewed and applied.
> 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-solr-ruby.patch, SOLR-516.patch, 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.
[jira] Updated: (SOLR-516) Add hl.alternateFieldLen parameter, to
set max length for hl.alternateField
Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
[ 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-solr-ruby.patch
attached a patch for solr-ruby.
> 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-solr-ruby.patch, SOLR-516.patch, 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.