Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 090CC200B3E for ; Wed, 7 Sep 2016 17:31:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 078EA160AC1; Wed, 7 Sep 2016 15:31:24 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4ED4F160ABF for ; Wed, 7 Sep 2016 17:31:23 +0200 (CEST) Received: (qmail 79219 invoked by uid 500); 7 Sep 2016 15:31:22 -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 79165 invoked by uid 99); 7 Sep 2016 15:31:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Sep 2016 15:31:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 087E22C1B82 for ; Wed, 7 Sep 2016 15:31:22 +0000 (UTC) Date: Wed, 7 Sep 2016 15:31:22 +0000 (UTC) From: "Tim Allison (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (LUCENE-7434) Add minNumberShouldMatch parameter to SpanNearQuery MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 07 Sep 2016 15:31:24 -0000 [ https://issues.apache.org/jira/browse/LUCENE-7434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15470909#comment-15470909 ] Tim Allison edited comment on LUCENE-7434 at 9/7/16 3:30 PM: ------------------------------------------------------------- Thanks to [~trejkaz] for pointing out that LUCENE-7434 is a duplicate of LUCENE-3369. was (Author: tallison@mitre.org): Thanks to [~trejkaz] for pointing out that LUCENE-7434 is a duplicate. > Add minNumberShouldMatch parameter to SpanNearQuery > --------------------------------------------------- > > Key: LUCENE-7434 > URL: https://issues.apache.org/jira/browse/LUCENE-7434 > Project: Lucene - Core > Issue Type: Improvement > Components: core/search > Reporter: Tim Allison > Priority: Minor > Attachments: AllPairsNearSpans20160902.patch, TestMinShouldMatchSpan.java, a b c d e f mm=3.PNG > > > On the user list, [~saar32] asked about a new type of SpanQuery that would allow for something like BooleanQuery's minimumNumberShouldMatch > bq. Given a set of search terms (t1, t2, t3, ti), return all documents where in a sequence of x=10 tokens at least c=3 of the search terms appear within the sequence. > I _think_ we can modify SpanNearQuery fairly easily to accommodate this. I'll submit a PR in the next few days. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org