lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Commit Tag Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4816) PassageFormatter in PostingsHighlighter trunk the message returned
Date Thu, 14 Mar 2013 18:30:13 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-4816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13602548#comment-13602548
] 

Commit Tag Bot commented on LUCENE-4816:
----------------------------------------

[trunk commit] Robert Muir
http://svn.apache.org/viewvc?view=revision&revision=1456597

LUCENE-4816: expose bm25 parameters in PassageScorer

                
> PassageFormatter in PostingsHighlighter trunk the message returned
> ------------------------------------------------------------------
>
>                 Key: LUCENE-4816
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4816
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/highlighter
>    Affects Versions: 4.1
>         Environment: NA
>            Reporter: Sebastien Dionne
>            Assignee: Michael McCandless
>             Fix For: 5.0, 4.3
>
>         Attachments: BreakIteratorTest.java, LUCENE-4816.patch, LUCENE-4816.patch, package.html,
PassageFormatter.java, PassageFormatter-PATCH.java, WholeBreakIterator.java
>
>
> when I try to highlight the word zero [0]  in the file : org\apache\lucene\search\postingshighlight\package.html
> the 2 last lines weren't return.  There are 4 Passages : 
> 2-65
> 277-434
> 434-735
> 735-968
> but the length of the file is 984.
> in the file : PassageFormatter.format(...)
> it should return all the original content with the words highlighted.
> PATCH
> need to add this at the end of the method
> // at line : 91 add this
> if(pos<content.length()){
>     sb.append(content.substring(pos));
> }
>     
> return sb.toString();

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message