From dev-return-99763-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Tue Jun 5 14:43:25 2012 Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 25E21CCFC for ; Tue, 5 Jun 2012 14:43:25 +0000 (UTC) Received: (qmail 19043 invoked by uid 500); 5 Jun 2012 14:43:23 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 18957 invoked by uid 500); 5 Jun 2012 14:43:23 -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 18873 invoked by uid 99); 5 Jun 2012 14:43:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 14:43:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 58C6E141663 for ; Tue, 5 Jun 2012 14:43:23 +0000 (UTC) Date: Tue, 5 Jun 2012 14:43:23 +0000 (UTC) From: "sebastian L. (JIRA)" To: dev@lucene.apache.org Message-ID: <60443495.39673.1338907403366.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1920138710.45487.1316511189594.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (LUCENE-3440) FastVectorHighlighter: IDF-weighted terms for ordered fragments MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-3440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289459#comment-13289459 ] sebastian L. commented on LUCENE-3440: -------------------------------------- Hi Koji, I was just wondering about https://issues.apache.org/jira/browse/LUCENE-2949 > FastVectorHighlighter: IDF-weighted terms for ordered fragments > ---------------------------------------------------------------- > > Key: LUCENE-3440 > URL: https://issues.apache.org/jira/browse/LUCENE-3440 > Project: Lucene - Java > Issue Type: Improvement > Components: modules/highlighter > Reporter: sebastian L. > Priority: Minor > Labels: FastVectorHighlighter > Fix For: 4.0 > > Attachments: LUCENE-3440.patch, LUCENE-3440.patch, LUCENE-3440.patch, LUCENE-3440_3.6.1-SNAPSHOT.patch, LUCENE-4.0-SNAPSHOT-3440-9.patch, weight-vs-boost_table01.html, weight-vs-boost_table02.html > > > The FastVectorHighlighter uses for every term found in a fragment an equal weight, which causes a higher ranking for fragments with a high number of words or, in the worst case, a high number of very common words than fragments that contains *all* of the terms used in the original query. > This patch provides ordered fragments with IDF-weighted terms: > total weight = total weight + IDF for unique term per fragment * boost of query; > The ranking-formula should be the same, or at least similar, to that one used in org.apache.lucene.search.highlight.QueryTermScorer. > The patch is simple, but it works for us. > Some ideas: > - A better approach would be moving the whole fragments-scoring into a separate class. > - Switch scoring via parameter > - Exact phrases should be given a even better score, regardless if a phrase-query was executed or not > - edismax/dismax-parameters pf, ps and pf^boost should be observed and corresponding fragments should be ranked higher -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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