From dev-return-312491-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Thu Feb 22 17:48:06 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 50B2E18067E for ; Thu, 22 Feb 2018 17:48:06 +0100 (CET) Received: (qmail 39697 invoked by uid 500); 22 Feb 2018 16:48:04 -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 39665 invoked by uid 99); 22 Feb 2018 16:48:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Feb 2018 16:48:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id F01E11A0746 for ; Thu, 22 Feb 2018 16:48:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -102.311 X-Spam-Level: X-Spam-Status: No, score=-102.311 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id phaySKUSo-uy for ; Thu, 22 Feb 2018 16:48:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id C58775F3CC for ; Thu, 22 Feb 2018 16:48:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 74EF4E01AE for ; Thu, 22 Feb 2018 16:48:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2B87126930 for ; Thu, 22 Feb 2018 16:48:00 +0000 (UTC) Date: Thu, 22 Feb 2018 16:48:00 +0000 (UTC) From: "Steve Rowe (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SOLR-11968) Multi-words query time synonyms MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-11968?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Steve Rowe resolved SOLR-11968. ------------------------------- Resolution: Duplicate Assignee: Steve Rowe > Multi-words query time synonyms > ------------------------------- > > Key: SOLR-11968 > URL: https://issues.apache.org/jira/browse/SOLR-11968 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public)=20 > Components: query parsers, Schema and Analysis > Affects Versions: master (8.0), 6.6.2 > Environment: Centos 7.x > Reporter: Dominique B=C3=A9jean > Assignee: Steve Rowe > Priority: Major > > I am trying multi words query time synonyms with Solr 6.6.2 and SynonymGr= aphFilterFactory filter as explain in this article > [https://lucidworks.com/2017/04/18/multi-word-synonyms-solr-adds-query-t= ime-support/] > =C2=A0 > My field type is : > {code:java} > > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 articles=3D"lang/contractions_= fr.txt"/> > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 articles=3D"lang/contractions_= fr.txt"/> > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ignoreCase=3D"true" expand=3D"= true"/> > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 =C2=A0 > =C2=A0 =C2=A0 > =C2=A0 {code} > =C2=A0 > synonyms.txt contains the line : > {code:java} > om, olympique de marseille{code} > =C2=A0 > stopwords.txt contains the word=C2=A0 > {code:java} > de{code} > =C2=A0 > The order of words in my query has an impact on the generated query in e= dismax > {code:java} > q=3D{!edismax qf=3D'name_text_gp' v=3D$qq} > &sow=3Dfalse > &qq=3D...{code} > with "qq=3Dom maillot" or "qq=3Dolympique de marseille maillot", I can se= e the synonyms expansion. It is working as expected. > {code:java} > "parsedquery_toString":"+(((+name_text_gp:olympiqu +name_text_gp:marseil = +name_text_gp:maillot) name_text_gp:om))", > "parsedquery_toString":"+((name_text_gp:om (+name_text_gp:olympiqu +name= _text_gp:marseil +name_text_gp:maillot)))",{code} > with "qq=3Dmaillot om" or "qq=3Dmaillot olympique de marseille", I can se= e the same generated query=C2=A0 > {code:java} > "parsedquery_toString":"+((name_text_gp:maillot) (name_text_gp:om))", > "parsedquery_toString":"+((name_text_gp:maillot) (name_text_gp:om))",{co= de} > I don't understand these generated queries. The first one looks like the = synonym expansion is ignored, but the second one shows it is not ignored an= d only the synonym term is used. > =C2=A0 > When I test the analisys for the field type the synonyms are correctly e= xpanded for both expressions > {code:java} > om maillot=C2=A0=C2=A0 > maillot om > olympique de marseille maillot > maillot olympique de marseille{code} > resulting outputs always include the following terms (obvioulsly not alwa= ys in the same order) > {code:java} > olympiqu om marseil maillot=C2=A0{code} > =C2=A0 > So, i suspect an issue with edismax query parser. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org