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 DDF1E604D for ; Tue, 24 May 2011 08:20:33 +0000 (UTC) Received: (qmail 86607 invoked by uid 500); 24 May 2011 08:20:31 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 86551 invoked by uid 500); 24 May 2011 08:20:31 -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 86543 invoked by uid 99); 24 May 2011 08:20:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 08:20:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2011 08:20:28 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AC12EDBE95 for ; Tue, 24 May 2011 08:19:47 +0000 (UTC) Date: Tue, 24 May 2011 08:19:47 +0000 (UTC) From: "Ron Mayer (JIRA)" To: dev@lucene.apache.org Message-ID: <250982943.38578.1306225187701.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (SOLR-2058) Adds optional "phrase slop" to edismax "pf2", "pf3" and "pf" parameters with field~slop^boost syntax 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/SOLR-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13038437#comment-13038437 ] Ron Mayer edited comment on SOLR-2058 at 5/24/11 8:18 AM: ---------------------------------------------------------- Nick, thanks! Glad you like it. I'm keeping a version that's kept more up-to-date with trunk on github here: https://github.com/ramayer/lucene-solr/tree/solr_2058_edismax_pf2_phrase_slop (though I must admit I've tested that less than an internal fork of trunk we made in Sep 2010 and deployed with only a few additional cherry-picked patches) was (Author: ramayer): Nick, thanks! Glad you like it. I'm keeping a version that's kept more up-to-date with trunk on github here: https://github.com/ramayer/lucene-solr/tree/solr_2058_edismax_pf2_phrase_slop > Adds optional "phrase slop" to edismax "pf2", "pf3" and "pf" parameters with field~slop^boost syntax > ---------------------------------------------------------------------------------------------------- > > Key: SOLR-2058 > URL: https://issues.apache.org/jira/browse/SOLR-2058 > Project: Solr > Issue Type: Improvement > Components: SearchComponents - other > Affects Versions: 3.1, 4.0 > Environment: n/a > Reporter: Ron Mayer > Priority: Minor > Attachments: edismax_pf_with_slop_v2.1.patch, edismax_pf_with_slop_v2.patch, pf2_with_slop.patch > > > http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201008.mbox/%3C4C659119.2010007@0ape.com%3E > {quote} > From Ron Mayer > ... my results might be even better if I had a couple different "pf2"s with different "ps"'s at the same time. In particular. One with ps=0 to put a high boost on ones the have the right ordering of words. For example insuring that [the query]: > "red hat black jacket" > boosts only documents with "red hats" and not "black hats". And another pf2 with a more modest boost with ps=5 or so to handle the query above also boosting docs with > "red baseball hat". > {quote} > [http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201008.mbox/%3CAANLkTimd+V3g6d_MnHP+JYkKd+dej8FVMvF_1LQoiLBU@mail.gmail.com%3E] > {quote} > From Yonik Seeley > Perhaps fold it into the pf/pf2 syntax? > pf=text^2 // current syntax... makes phrases with a boost of 2 > pf=text~1^2 // proposed syntax... makes phrases with a slop of 1 and > a boost of 2 > That actually seems pretty natural given the lucene query syntax - an > actual boosted sloppy phrase query already looks like > {{text:"foo bar"~1^2}} > -Yonik > {quote} > [http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201008.mbox/%3Calpine.DEB.1.10.1008161300510.6335@radix.cryptio.net%3E] > {quote} > From Chris Hostetter > Big +1 to this idea ... the existing "ps" param can stick arround as the > default for any field that doesn't specify it's own slop in the pf/pf2/pf3 > fields using the "~" syntax. > -Hoss > {quote} -- This message is automatically generated by JIRA. 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