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 F2B6B200BEC for ; Thu, 29 Dec 2016 17:49:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F1652160B2D; Thu, 29 Dec 2016 16:49:50 +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 47051160B23 for ; Thu, 29 Dec 2016 17:49:50 +0100 (CET) Received: (qmail 84103 invoked by uid 500); 29 Dec 2016 16:49:49 -0000 Mailing-List: contact user-help@lucenenet.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@lucenenet.apache.org Delivered-To: mailing list user@lucenenet.apache.org Received: (qmail 84036 invoked by uid 99); 29 Dec 2016 16:49:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 16:49:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 91932C0BA9 for ; Thu, 29 Dec 2016 16:49:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id favXA_PIk4Zp for ; Thu, 29 Dec 2016 16:49:47 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id F415A5F474 for ; Thu, 29 Dec 2016 16:49:46 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id t184so276595556qkd.0 for ; Thu, 29 Dec 2016 08:49:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tuqlAp3w65YsobFdTVj0kgeTn3OAbyRnWtSilChyO5g=; b=suqsm6cP5d7LurViNeAzLeqFsz2H/2lOvUHniEwx9LWUwPGMemgahox2W/v5s/z7lB 2lQsHXyEcm9zR7+SoVF+KjOx1n2+kHJHg8Hg+N93xLPuX94FOpV5AzVWhYxwhO9BwmJl hgqpdm8dXBulE85FPWMadjZVAkKn1wtqpcfcdL0vWg/xX+9oo/HI/UFUdkx8ZodPSoIy 8xTEIjgA+Co6IwOunNgMpvZS2pSoS/o25aEUeQthtiBuCaPVeylsh1w9iUWSPBuXrRyl aqKHVtDVRsi/pQ2UCPpaOrr50KPdYLlpYoE4iVSx59hysQRamcPSoU8eSPT8wnP24PS5 Lemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tuqlAp3w65YsobFdTVj0kgeTn3OAbyRnWtSilChyO5g=; b=ny1ztX7E5T6mIudHHQgNaIUWhEmeD2S/NJLKAv1ki7nwMb0nRzEdiFPIlJk+eGwpb7 U6rUvXddkQNYajPruoTraDEjlXEcxZiZIvYCyxvnUu9N5mRD65zFgZiW0DpoEXrB2wkR TlMRJZw2dNRx+ehR3ChnOQl3PONHfZ49YxNUwoDLzgpi4iJBuYdOuSz2SMPh4lCtXGr3 ENFkUq86aOoFr8jTYEfRlJpD44uSHNBBj2D6F1QRPzl4/LHPYmtfPwO6lGs8spUTb+BW eRF+bExnnaUsRGTjf1Z6jHTWISDGCP+204tv720OXqzqyANY5j4uDy922G5/Bd//lUAQ VlVA== X-Gm-Message-State: AIkVDXLV8ej7Zq7zahMbm5Uj4RMBrdnu9QzAyCSYHKfwYq1+vF97i4Tt5XE2qFwR0tlcr+0KATVuFjk+WFAGeg== X-Received: by 10.55.151.65 with SMTP id z62mr45983662qkd.180.1483030185671; Thu, 29 Dec 2016 08:49:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.237.52.37 with HTTP; Thu, 29 Dec 2016 08:49:25 -0800 (PST) In-Reply-To: References: From: "Koga, Diego" Date: Thu, 29 Dec 2016 11:49:25 -0500 Message-ID: Subject: Re: Avoid letter searches To: user@lucenenet.apache.org Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 29 Dec 2016 16:49:51 -0000 But that is to avoid indexing, isn't it? If so, I'll still have the problem because my searches uses the wildcard "*" at the end. Or does it filter also the query when it parses: var parser = new MultiFieldQueryParser(Lucene.Net.Util.Version.LUCENE_30, fieldsToSearch, _analyzer); keyword = keyword.Replace("-", " "); keyword = QueryParser.Escape(keyword); var main = parser.Parse(string.Join(" ", keyword.Trim().Split(' ').Where(x => !string.IsNullOrEmpty(x)).Select(x => x.Trim() == "*" ? x.Trim() : x.Trim() + "*"))); Att., ------------------ Koga, Diego On Thu, Dec 29, 2016 at 11:26 AM, Itamar Syn-Hershko wrote: > Yes, > https://lucene.apache.org/core/4_5_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html > > https://github.com/apache/lucenenet/blob/master/src/Lucene.Net.Core/Analysis/LengthFilter.cs > > -- > > Itamar Syn-Hershko > http://code972.com | @synhershko > Freelance Developer & Consultant > Lucene.NET committer and PMC member > > On Thu, Dec 29, 2016 at 6:17 PM, Koga, Diego wrote: > >> Guys, >> >> I am facing an issue if the search is letters like: a b c d e f g. >> >> These letters are everywhere which causes high amounts of processing >> and does not mean anything at the end. >> >> Is there any way to avoid it other than split by spaces and check the >> length of the string? >> >> >> Thanks, >> >> >> Att., >> ------------------ >> Koga, Diego >>