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 62955200B6C for ; Sun, 28 Aug 2016 17:41:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 59B8A160AB4; Sun, 28 Aug 2016 15:41:10 +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 9EA4C160AA6 for ; Sun, 28 Aug 2016 17:41:09 +0200 (CEST) Received: (qmail 76728 invoked by uid 500); 28 Aug 2016 15:41:08 -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 76716 invoked by uid 99); 28 Aug 2016 15:41:08 -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; Sun, 28 Aug 2016 15:41:08 +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 BF918C11D2 for ; Sun, 28 Aug 2016 15:41:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 mx2-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 NEBQ5wRrzV8S for ; Sun, 28 Aug 2016 15:41:05 +0000 (UTC) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 0B66C5F23C for ; Sun, 28 Aug 2016 15:41:05 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id b199so85878207lfe.0 for ; Sun, 28 Aug 2016 08:41:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=OWDO2hLbltWJG8/lGOalBiLMlVcRoPDGMKUQUEmUi90=; b=qIl399jwk3mYrd6t4PsrPVSviFtdYbLvuDmr+G1jXpmuvn3/l1YexXo7O2iR0CAh5l aqf2M+egPitEFwTfIUNm1XfgHtn/+COZb0FQyMs43zxipOC2dUWiEF348KIfoE4g/6Jx YFbLguiXbAiz3HVulARW94b1wGo5ix8P+6fJXpyRLsqxDlGeE7StDEu2kwaa22OpoPdK p6zA6FvbObbY3+fAP+2PqtlBbZJ00KoXsm/ReeLo4nslXuH+UyLzrZdeP3kCNf4UdfaZ mQ0AUXIMnLu/UaFvFdyP4CB98Kcsa40IgU6OXpMJ/NfxCXtJ1/AinL+SnBgReBW5jkFO WuaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=OWDO2hLbltWJG8/lGOalBiLMlVcRoPDGMKUQUEmUi90=; b=mmXWdSSlWZMo7S9hD0ueldey5UzD7zeI4GvozxO1SUpPsQc+lcYWbbePuBoBmn0fEv bAMoK0yNoxJQu5MFf0VTwXLd92iDSNcOecDxo5XNlOJQtKc3ISTuGeGWLIpxyBdqbtoA RYzRTFzFrqRHqcr264okk9IML8pXRn8HNGQgYvh2mz+175UGB5bjTdQZYUq0gi0KQj5i eN6EulUk8PWDK/1CHA/sgkW1/9QO8ZQ8a0lJfBGF6jLbCCVSJndVcYqwkS8xhUwqUSX6 dzbgIsBvC8gcp0mvFlIJZUEjbLNze+SVgsPeGLgoBnePhTXyqANAxvWCYwqIBgYOHOPP jPXQ== X-Gm-Message-State: AE9vXwOSf7oMBdqeKQl/NKPJ8C6+KvK+HS6fhnt1+2a5A17D/yF0VpBoQ5tqkaOg74jKIv67hOveSAK5X7D8hw== X-Received: by 10.25.29.6 with SMTP id d6mr4167323lfd.93.1472398858254; Sun, 28 Aug 2016 08:40:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Adrien Grand Date: Sun, 28 Aug 2016 15:40:47 +0000 Message-ID: Subject: Re: Text field matching To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11401dfae9ff11053b2392bf archived-at: Sun, 28 Aug 2016 15:41:10 -0000 --001a11401dfae9ff11053b2392bf Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maybe you should build the FuzzyQuery manually instead of making it go through a query parser? Le lun. 22 ao=C3=BBt 2016 =C3=A0 20:42, Jeremy Glesner a =C3=A9crit : > Good day, > > I'm trying to get my head wrapped around one of the fundamental aspects o= f > Lucene ... whether or not I need to index the document a certain way in > order to query it the way I want. I'm inserting documents using a > Whitespace Tokenizer to process content into a Lucene 5.4.1 index. Here'= s > what I want to do: > > I have a single fuzzy term, such as "bostn~", and I want to query a text > field. Using a AnalyzingQueryParser, each of the tokens that comprise thi= s > text field are individually matched against "bostn~". Instead, I want a > query that treats the text field as a single string, not separate tokens > that are each compared to "bostn~". > > Is there a way (Query type?) to achieve this, without having to change my > indexing technique? > > I greatly appreciate your time, > > Jeremy > --001a11401dfae9ff11053b2392bf--