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 9227A200D2B for ; Thu, 2 Nov 2017 15:36:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 90BE4160BDE; Thu, 2 Nov 2017 14:36:41 +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 D506E1609EE for ; Thu, 2 Nov 2017 15:36:40 +0100 (CET) Received: (qmail 66153 invoked by uid 500); 2 Nov 2017 14:36: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 Delivered-To: moderator for solr-user@lucene.apache.org Received: (qmail 52644 invoked by uid 99); 2 Nov 2017 12:25:48 -0000 X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.4 X-Spam-Level: X-Spam-Status: No, score=-0.4 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, HTML_NONELEMENT_30_40=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=thecommercepartnership.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thecommercepartnership.com; s=google; h=mime-version:from:date:message-id:subject:to; bh=M5Kz1sAIYN/pfGV0dsbIV030pPEnghD5CBHt4lFtGCw=; b=aZ02T9p4gYqNNwX/t/HRS4J+fwAH0CA3BZ55tYp2qHcB8kMU4f/PffdrykP4QYo0xE ysisa/ii3SYPjQzXgRaQq9YPkl/D+j2aAXxZUpjJqSXGOyoHc8zw3ByBakrvA51CPdND vcqrnZWri2TSvFZuLNukgcOHd9JRxPTdp846Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=M5Kz1sAIYN/pfGV0dsbIV030pPEnghD5CBHt4lFtGCw=; b=SLdVDMFmqeEW7wwiIQImoKfyI6mkjlLrJJ8SaFQxEfbayHVHNP3HN6Ed26Kkzj9mJT vCpUFsPLwTVrfPlWVU560ZmZ9JSd/kuU2mzkonbsQ5uQ2gKJHEaylOQzRVWpqSEea9r6 jUureE00lvwyfUQjtCKyhicmKssEgZYaovt2yFDJ7FNcyuLNlR02csZv+hc1HoVAfvTp S8hzzJ9zm7TKylBgvv0j70Hb7eDwB4566v9gZG/4nRFDLy5Wvytzc24UFTcLGLIjeAVP XTqXC9YoWg8FVEneUdAeUiG1AGdNe3oOe/4a1yoPc96+HYmPJKMDXj3hwNugbGFlVg8p V8Ug== X-Gm-Message-State: AJaThX6YgVETA9cRhE4wkbhgRM1Xg3dTYe9BmnUNJwBsnMFXroRyGN2J lCDhA/H9NTS4aWFx3A1c7CUQh7CaK85YbUREb/Fb8iVy X-Google-Smtp-Source: ABhQp+Q9nGzur/uIPVkxGPpEi20pi0ztcjXDFJeTkBvK6kFj+NvIvkH/fYhpvnql/2nf+XTIel6+/aWlXqWQWjmgve0= X-Received: by 10.107.12.141 with SMTP id 13mr4363323iom.1.1509625543471; Thu, 02 Nov 2017 05:25:43 -0700 (PDT) MIME-Version: 1.0 From: Amar Raja Date: Thu, 2 Nov 2017 12:25:43 +0000 Message-ID: Subject: SynonymGraphFilterFactory with edismax To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary="001a113f9656434db5055cff16d7" archived-at: Thu, 02 Nov 2017 14:36:41 -0000 --001a113f9656434db5055cff16d7 Content-Type: text/plain; charset="UTF-8" Hello, I have the following field definition: And the following two synonym definitions: kids => boys,girls metallic => rose gold,metallic The intent being a user searching for "kids" should get girls or boys results, but searching for "boys" will not bring back girls results. Similarly searching for "metallic" should bring back results for either "metallic" or "rose gold", but the search for "rose gold" should not bring back "metallic". Another property I have set is q.op=AND. I.e. "boys tops" should return where only both terms exist. The first synonym works well, producing the following dismax query: (+(+DisjunctionMaxQuery((Synonym(web_name:boi web_name:girl))~1.0)))/no_ coord However, for the second I get this: (+(+DisjunctionMaxQuery(((((+web_name:rose +web_name:gold) web_name:metal)~2))~1.0)))/no_coord But for any terms where any of the terms in the RHS have multiple terms, it seems to want to match both synonyms, so in this case only documents with both "metallic" and "rose gold" will match. Any ideas where I am going wrong? --001a113f9656434db5055cff16d7--