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 5CF43200C16 for ; Thu, 9 Feb 2017 18:39:28 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5B646160B50; Thu, 9 Feb 2017 17:39:28 +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 A6802160B4B for ; Thu, 9 Feb 2017 18:39:27 +0100 (CET) Received: (qmail 44868 invoked by uid 500); 9 Feb 2017 17:39:26 -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 44856 invoked by uid 99); 9 Feb 2017 17:39:26 -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, 09 Feb 2017 17:39:26 +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 96BC1C3250 for ; Thu, 9 Feb 2017 17:39:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.5 X-Spam-Level: X-Spam-Status: No, score=0.5 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=mikemccandless-com.20150623.gappssmtp.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 YSJCtfE9vaYB for ; Thu, 9 Feb 2017 17:39:24 +0000 (UTC) Received: from mail-io0-f172.google.com (mail-io0-f172.google.com [209.85.223.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 913D15FABF for ; Thu, 9 Feb 2017 17:39:23 +0000 (UTC) Received: by mail-io0-f172.google.com with SMTP id j13so22698379iod.3 for ; Thu, 09 Feb 2017 09:39:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mikemccandless-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Hc2r+n1uPu3hblqFdLsRk2QZClXdpB5B5Aw/N6hdvp4=; b=v9xzmbDoGfy49GS+JfWgeNnXkv9iPwknRbT1HxWwzJmnI4LMEjAdLO+MORWmsAghN/ WtbD7jzCd9bG2dIik6BKBNRZJndpyLNMtN4P8ftOSkeIMAXj3O0hGzYq2XSRVZTHTyFz 8esLDofPNhegLoTZ2nrvdJLNdIuzkzEiJ92xWijdYReWUzlUN6PbaLj/fTinWR1VXzhB QDfbMgW6B83kdHJmsB9/acVNX3ctRlIAnkfiFbcDkSPbz34vkR4zM2+kjeyY/dC1j4VI tVkCdM7zCB2ZFBcw9Ea9aJ6BFU5kAHuBelVj3qeBfOo7T0lykNsgn6fQ8GqaZSZejCEk p+jA== 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=Hc2r+n1uPu3hblqFdLsRk2QZClXdpB5B5Aw/N6hdvp4=; b=tVAcELJp26NWPm3TP/+Q7d0keyFvNUv3rYptZJy/a83WwDi8vwuaUrcazbmjf+PE0w VWRseUwPzCpFXc85IGxBvnWYydIUnEpqxS6KF3wYaJgubJeBgApnk++CiD69PycFtVqb ApIPQDitSvr5dN/gJPYeqQoZORhrmFFV9sQG1qdyGqTCaze5w1CKZqGaSvSYV0SOVWG8 mDIqhFVYm4L2MhURXytJVRz88DBJcuuvZMkEy1/YVSw6zPsCwluBzJb7KogRzBu7tIHX P/00rZtI09zcsH4Lnjwuy83Sdc6nVIbOn/WP2LE9D7Q7DGilFd9Z0kwoqbE4ra1lPgsO huKQ== X-Gm-Message-State: AMke39kK5Zt9Pfs2yNyPEF3MHGt0l5Q5e9lWWoIKEF5R4q3RfkAZuUwsGQum32G/3ydPfCznpQwY/j4LoL28bQ== X-Received: by 10.107.129.39 with SMTP id c39mr4529375iod.57.1486661962467; Thu, 09 Feb 2017 09:39:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.132.38 with HTTP; Thu, 9 Feb 2017 09:39:01 -0800 (PST) In-Reply-To: <05326ffd-e005-2250-4d4e-0ea17f00d3ab@uni-bielefeld.de> References: <5a1c6576-319d-01be-b089-cd93dce5c2e1@uni-bielefeld.de> <15381_1486467299_v17BYvhS006975_CAL8Pwkb6MW5CQe8_-o-JGpUGOr1Z_s54-w2iHuXHCRf+aUA7yA@mail.gmail.com> <23977_1486492326_v17IW4CD018167_CAL8PwkZiSZvAAuvGfOp=Sao7fVZPZqzXeFJkQ1PO0tgCxypkvg@mail.gmail.com> <05326ffd-e005-2250-4d4e-0ea17f00d3ab@uni-bielefeld.de> From: Michael McCandless Date: Thu, 9 Feb 2017 12:39:01 -0500 Message-ID: Subject: Re: SynonymFilterFactory deprecated since 6.4.0 To: Lucene Users , Bernd Fehling Content-Type: text/plain; charset=UTF-8 archived-at: Thu, 09 Feb 2017 17:39:28 -0000 On Thu, Feb 9, 2017 at 2:40 AM, Bernd Fehling wrote: > I tried SynonymGraphFilter with my setup and it works right away. > It payed of that I did some modifications on my filters while > testing 6.3 with my setup. Good! > I only replaced SynonymFilter with SynonymGraphFilter and did not > use FlattenGraphFilter, pretty simple. So I can confirm that, up > to this point, SynonymGraphFilter is a full replacement for > SynonymFilter. At least for search-time synonym handling. > > But this also means there is still some work with the attributes, right? > Position looks good, type and start are no problem anyway, but > the end position is still wrong and the positionLength for multi-word > synonyms. Can you give an example or make a small test case? PositionLengthAttribute is supposed to be correct coming out of SynonymGraphFilter. > One thing I noticed was that the originating token which "produces" > synonyms comes out last from SynonymGraphFilter, after the > "produced" synonyms. > I will have a look inside with debugger but I guess this is due > to output buffering of SynonymGraphFilter? Yeah they do come out in a different order, which token filters are allowed to do in general for all tokens leaving from the same position ... Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org