Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 70463 invoked from network); 30 Aug 2010 22:41:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Aug 2010 22:41:42 -0000 Received: (qmail 60575 invoked by uid 500); 30 Aug 2010 22:41:41 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 60511 invoked by uid 500); 30 Aug 2010 22:41:41 -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 60503 invoked by uid 99); 30 Aug 2010 22:41:41 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Aug 2010 22:41:41 +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; Mon, 30 Aug 2010 22:41:24 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7UMf26b013579 for ; Mon, 30 Aug 2010 22:41:02 GMT Message-ID: <16841563.79201283208062268.JavaMail.jira@thor> Date: Mon, 30 Aug 2010 18:41:02 -0400 (EDT) From: "Ron Mayer (JIRA)" To: dev@lucene.apache.org Subject: [jira] Updated: (SOLR-2058) Adds optional "phrase slop" to edismax "pf2", "pf3" and "pf" parameters with field~slop^boost syntax In-Reply-To: <21788204.444741282219096514.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/SOLR-2058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ron Mayer updated SOLR-2058: ---------------------------- Attachment: edismax_pf_with_slop_v2.patch Updated to use more sane FieldParams class to pass fields,, boosts, and phrase slops instead of the bizarre Map> I was using before. > 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.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. - 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