From solr-user-return-144812-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Mon Nov 5 13:51:42 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B2C89180670 for ; Mon, 5 Nov 2018 13:51:41 +0100 (CET) Received: (qmail 56075 invoked by uid 500); 5 Nov 2018 12:51:39 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 56063 invoked by uid 99); 5 Nov 2018 12:51:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2018 12:51:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A3DB3C2168 for ; Mon, 5 Nov 2018 12:51:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.889 X-Spam-Level: * X-Spam-Status: No, score=1.889 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3H8ixk2rOFDb for ; Mon, 5 Nov 2018 12:51:37 +0000 (UTC) Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id DAB645F180 for ; Mon, 5 Nov 2018 12:51:36 +0000 (UTC) Received: by mail-yb1-f181.google.com with SMTP id 131-v6so3698204ybe.12 for ; Mon, 05 Nov 2018 04:51:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=hoqXJ8mGis50ekuCHuzDsx+nQfV2QK9mkPbXdxswtIQ=; b=EiihglriKttmLgrjPhG7WfMkjSGvFm65wcE7UDVtkJs3dGgQdUkqCYwPlAnZqlClQ/ 85XOhwro+uQYBncSVFk0QNLjsX1qgsc3AzPwP6uJAoHpYjjGagkbXkoz+xeBDbNE4xJa /GjfWF+SpkwbxoNa6JuDBpARC+WJbuX/u/WX8AdLm1BHlfuirozdkNPEK9vcMUEyvKR5 GD9seD2kN5DKdTyAA1UFaJcBy2T/E6+r4mmXrkW7OG50KOGXOOJIwc/UrXfjFlYPwydt iDJH2nF9rUYz1LvJBRS/lJIv/ylSYmy3Hjp7vBVB6v2gVDgDFSszoTdM71YgrlSnFZD7 Qy7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=hoqXJ8mGis50ekuCHuzDsx+nQfV2QK9mkPbXdxswtIQ=; b=KXwjtU4SuFNBIxwWd8XLpXEIO1aqvNg5WW8g+7/kF1/jFn9s52Nj2kG0k/6QtXePRI IglkoSzwPlUWYc0fbcMr72RN4NjQTeeNT7+wB7N6DDCP6qTDSco/HWBhzJ3g4czBECAB IUlI+zaxjpyhISn7vt/NXnbp3Un7/VEQIcNWwUbg5P1fjIhTrpCovpEJ0eUcEW0U4Rpd WmcFDSqL8A1+PnxbUffYmfSXYGshnp2rNslXfUUbj6fMdHpcOT+L1219JlQ1Lb8H/0q+ ITZ4Byf49hmeTaR2HNy2h03nDdduapKJh8N7m7TUgORg+pzrsGhw21UwakoPS2XdN2Hl uJlw== X-Gm-Message-State: AGRZ1gLwtX6CKe86xcip4pXbb2Pnr1u/RmY6MnQyCnyllPAz9zX/Iklc SMW9d8UILOSvjqUzOC5MhwtWBBxy98espWES4GiuuQ== X-Google-Smtp-Source: AJdET5e9winlVTMT6NzLkVp6jqoIu6cY57SvC+IXcSnHeETdMg3RbWMO3mD1wj/ooYCUQIbWEUat2dibypZxrIEfQCk= X-Received: by 2002:a25:1b44:: with SMTP id b65-v6mr21071208ybb.96.1541422295248; Mon, 05 Nov 2018 04:51:35 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Alexandre Rafalovitch Date: Mon, 5 Nov 2018 07:51:23 -0500 Message-ID: Subject: Re: Restrict search on term/phrase count in document. To: solr-user Content-Type: multipart/alternative; boundary="0000000000005b77c70579ea58ad" --0000000000005b77c70579ea58ad Content-Type: text/plain; charset="UTF-8" That is kind of unusual. What is the business issue you are trying to solve? Perhaps there is a different way to look at this problem. Regards, Alex On Mon, Nov 5, 2018, 5:20 AM Modassar Ather Hi, > > Is there a way to restrict search with a term/phrase occurring n number of > times in it? > For example, find the documents which has a term/phrase 5 or more times in > them. > > The "Terms component" seems to provide a way but not sure how it will work > for complex queries. > Please note that the Solr version I am using is 6.5.1. Kindly provide your > inputs. > > Best, > Modassar > --0000000000005b77c70579ea58ad--