Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 038A918CE3 for ; Thu, 10 Sep 2015 09:44:29 +0000 (UTC) Received: (qmail 78229 invoked by uid 500); 10 Sep 2015 09:44:27 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 78178 invoked by uid 500); 10 Sep 2015 09:44:27 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 78157 invoked by uid 99); 10 Sep 2015 09:44:26 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Sep 2015 09:44:26 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 711771A0BA8 for ; Thu, 10 Sep 2015 09:44:26 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.021 X-Spam-Level: X-Spam-Status: No, score=-0.021 tagged_above=-999 required=6.31 tests=[RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7eQw5Bby2qzG for ; Thu, 10 Sep 2015 09:44:19 +0000 (UTC) Received: from 18.mo7.mail-out.ovh.net (18.mo7.mail-out.ovh.net [188.165.56.163]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8440542BC8 for ; Thu, 10 Sep 2015 09:44:19 +0000 (UTC) Received: from mail303.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 9726BFF8ECF for ; Thu, 10 Sep 2015 11:43:26 +0200 (CEST) Received: from RCM-89.225.200.254 (localhost [127.0.0.1]) by mail303.ha.ovh.net (Postfix) with ESMTPA id 78BDB1E275C for ; Thu, 10 Sep 2015 11:43:23 +0200 (CEST) Received: from [89.225.200.254] by ssl0.ovh.net with HTTP (HTTP/1.1 POST); Thu, 10 Sep 2015 11:43:23 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 10 Sep 2015 11:43:23 +0200 From: aurelien.mazoyer@francelabs.com To: java-user@lucene.apache.org Subject: Use SloppyPhraseScorer in SpanNearQuery Message-ID: X-Sender: aurelien.mazoyer@francelabs.com User-Agent: Roundcube Webmail/1.1.2 X-Originating-IP: 89.225.200.254 X-Webmail-UserID: aurelien.mazoyer@francelabs.com X-Ovh-Tracer-Id: 5817243343768897712 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekgedrudeiucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenuc Hi all, SpanNearQuery and SloppyPhraseQuery can have similar behavior in some use cases. On the one hand, I have to distinguish between ordered and unordered terms (that’s enabled with SpanNearQuery) but on the other hand, I want to use the SloppyPhraseScorer, that takes the relative positions of the terms into account for the score calculation. As far I understood, this is possible with SloppyPhraseQuery but not with SpanNearQuery. Do you think there is there a way to combine these two features to have the best of both worlds? Thanks! Aurélien --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org