Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 80363 invoked from network); 7 Sep 2010 08:39:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Sep 2010 08:39:20 -0000 Received: (qmail 19886 invoked by uid 500); 7 Sep 2010 08:39:19 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 19544 invoked by uid 500); 7 Sep 2010 08:39:17 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 19537 invoked by uid 99); 7 Sep 2010 08:39:15 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 08:39:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Sep 2010 08:38:58 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o878cadL013544 for ; Tue, 7 Sep 2010 08:38:36 GMT Message-ID: <2450003.50411283848716569.JavaMail.jira@thor> Date: Tue, 7 Sep 2010 04:38:36 -0400 (EDT) From: "Lukas Vlcek (JIRA)" To: dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-2464) FastVectorHighlighter: add a FragmentBuilder to return entire field contents In-Reply-To: <3625097.66431273939543291.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-2464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906709#action_12906709 ] Lukas Vlcek commented on LUCENE-2464: ------------------------------------- I found that even if the SingleFragListBuilder is used then client has explicitly ensure that numberOfFragments > 0 otherwise highlighter produces empty output. The thing is that {noformat} FastVectorHighlighter.getBestFragments( final FieldQuery fieldQuery, IndexReader reader, int docId, String fieldName, int fragCharSize, int maxNumFragments );{noformat} delegates to {noformat} BaseFragmentsBuilder.createFragments( IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments, String[] preTags, String[] postTags, Encoder encoder);{noformat} which needs to be passed maxNumFragments > 0 in order to produce any non-empty output. > FastVectorHighlighter: add a FragmentBuilder to return entire field contents > ---------------------------------------------------------------------------- > > Key: LUCENE-2464 > URL: https://issues.apache.org/jira/browse/LUCENE-2464 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/highlighter > Reporter: Koji Sekiguchi > Assignee: Koji Sekiguchi > Priority: Minor > Fix For: 3.1 > > Attachments: LUCENE-2464.patch > > > In Highlightrer, there is a Nullfragmenter. There is a requirement its counterpart in FastVectorhighlighter. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org