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/07/26 05:25:31 UTC

[jira] Created: (SOLR-662) support all highlighter parameters in solr-ruby

support all highlighter parameters in solr-ruby
-----------------------------------------------

                 Key: SOLR-662
                 URL: https://issues.apache.org/jira/browse/SOLR-662
             Project: Solr
          Issue Type: Improvement
          Components: clients - ruby - flare
    Affects Versions: 1.3
            Reporter: Koji Sekiguchi
            Priority: Minor


At present solr-ruby doesn't support the following hl functions:

* per-field override
** hl.snippets
** hl.fragsize
** hl.requireFieldMatch
** hl.simple.pre
** hl.simple.post

* non-per-field-override
** hl.alternateField
** hl.maxAlternateFieldLength

* other hl parameters
** hl.maxAnalyzedChars (w/ *per-field override*)
** hl.usePhraseHighlighter
** hl.mergeContiguous (w/ *per-field override*)
** hl.increment (w/ *per-field override*)
** hl.formatter (w/ *per-field override*)
** hl.fragmenter (w/ *per-field override*)
** hl.regex.slop (w/ *per-field override*)
** hl.regex.pattern (w/ *per-field override*)
** hl.regex.maxAnalyzedChars (w/ *per-field override*)

A patch supports these functions will be shortly.


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


[jira] Commented: (SOLR-662) support all highlighter parameters in solr-ruby

Posted by "Erik Hatcher (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617138#action_12617138 ] 

Erik Hatcher commented on SOLR-662:
-----------------------------------

Probably no need to worry about back compatibility too much with solr-ruby and the max_snippets stuff, since it is new since Solr 1.2.   But +1 in general.

> support all highlighter parameters in solr-ruby
> -----------------------------------------------
>
>                 Key: SOLR-662
>                 URL: https://issues.apache.org/jira/browse/SOLR-662
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>    Affects Versions: 1.3
>            Reporter: Koji Sekiguchi
>            Priority: Minor
>         Attachments: SOLR-662.patch
>
>
> At present solr-ruby doesn't support the following hl functions:
> * per-field override
> ** hl.snippets
> ** hl.fragsize
> ** hl.requireFieldMatch
> ** hl.simple.pre
> ** hl.simple.post
> * non-per-field-override
> ** hl.alternateField
> ** hl.maxAlternateFieldLength
> * other hl parameters
> ** hl.maxAnalyzedChars (w/ *per-field override*)
> ** hl.usePhraseHighlighter
> ** hl.mergeContiguous (w/ *per-field override*)
> ** hl.increment (w/ *per-field override*)
> ** hl.formatter (w/ *per-field override*)
> ** hl.fragmenter (w/ *per-field override*)
> ** hl.regex.slop (w/ *per-field override*)
> ** hl.regex.pattern (w/ *per-field override*)
> ** hl.regex.maxAnalyzedChars (w/ *per-field override*)
> A patch supports these functions will be shortly.

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


[jira] Updated: (SOLR-662) support all highlighter parameters in solr-ruby

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated SOLR-662:
--------------------------------

    Attachment: SOLR-662.patch

For backward compatibility, the patch supports both formats:

{code:title=@params[:highlighting][:max_snippets]}
      :highlighting => {
        :max_snippets => 3
      }
{code}

{code:title=@params[:highlighting][:max_snippets]}
      :highlighting => {
        :max_snippets => {
          :default=>2,:fields=>{'author'=>3}
        }
      }
{code}


> support all highlighter parameters in solr-ruby
> -----------------------------------------------
>
>                 Key: SOLR-662
>                 URL: https://issues.apache.org/jira/browse/SOLR-662
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>    Affects Versions: 1.3
>            Reporter: Koji Sekiguchi
>            Priority: Minor
>         Attachments: SOLR-662.patch
>
>
> At present solr-ruby doesn't support the following hl functions:
> * per-field override
> ** hl.snippets
> ** hl.fragsize
> ** hl.requireFieldMatch
> ** hl.simple.pre
> ** hl.simple.post
> * non-per-field-override
> ** hl.alternateField
> ** hl.maxAlternateFieldLength
> * other hl parameters
> ** hl.maxAnalyzedChars (w/ *per-field override*)
> ** hl.usePhraseHighlighter
> ** hl.mergeContiguous (w/ *per-field override*)
> ** hl.increment (w/ *per-field override*)
> ** hl.formatter (w/ *per-field override*)
> ** hl.fragmenter (w/ *per-field override*)
> ** hl.regex.slop (w/ *per-field override*)
> ** hl.regex.pattern (w/ *per-field override*)
> ** hl.regex.maxAnalyzedChars (w/ *per-field override*)
> A patch supports these functions will be shortly.

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


[jira] Resolved: (SOLR-662) support all highlighter parameters in solr-ruby

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved SOLR-662.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3

Thank you for the comment, Erik.
Committed revision 681409.

> support all highlighter parameters in solr-ruby
> -----------------------------------------------
>
>                 Key: SOLR-662
>                 URL: https://issues.apache.org/jira/browse/SOLR-662
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - ruby - flare
>    Affects Versions: 1.3
>            Reporter: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: SOLR-662.patch
>
>
> At present solr-ruby doesn't support the following hl functions:
> * per-field override
> ** hl.snippets
> ** hl.fragsize
> ** hl.requireFieldMatch
> ** hl.simple.pre
> ** hl.simple.post
> * non-per-field-override
> ** hl.alternateField
> ** hl.maxAlternateFieldLength
> * other hl parameters
> ** hl.maxAnalyzedChars (w/ *per-field override*)
> ** hl.usePhraseHighlighter
> ** hl.mergeContiguous (w/ *per-field override*)
> ** hl.increment (w/ *per-field override*)
> ** hl.formatter (w/ *per-field override*)
> ** hl.fragmenter (w/ *per-field override*)
> ** hl.regex.slop (w/ *per-field override*)
> ** hl.regex.pattern (w/ *per-field override*)
> ** hl.regex.maxAnalyzedChars (w/ *per-field override*)
> A patch supports these functions will be shortly.

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