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 8D807200D1E for ; Wed, 18 Oct 2017 21:15:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8C1A2160BEA; Wed, 18 Oct 2017 19:15:36 +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 A9AEA1609DE for ; Wed, 18 Oct 2017 21:15:35 +0200 (CEST) Received: (qmail 73376 invoked by uid 500); 18 Oct 2017 19:15:33 -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 Received: (qmail 73363 invoked by uid 99); 18 Oct 2017 19:15:33 -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; Wed, 18 Oct 2017 19:15:33 +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 71D821A264D for ; Wed, 18 Oct 2017 19:15:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -3.12 X-Spam-Level: X-Spam-Status: No, score=-3.12 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_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=spglobal.com header.b=gYqD81sz; dkim=pass (1024-bit key) header.d=spgl.onmicrosoft.com header.b=Dc8a6du3 Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GF7wO1iu-7bn for ; Wed, 18 Oct 2017 19:15:30 +0000 (UTC) Received: from corp148mr6-2.mcgraw-hill.com (corp148mr6-2.mcgraw-hill.com [198.45.18.215]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4F47E5F477 for ; Wed, 18 Oct 2017 19:15:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=spglobal.com; i=@spglobal.com; l=5120; q=dns/txt; s=GOI1; t=1508354131; x=1539890131; h=from:to:subject:date:message-id:mime-version; bh=pAIOCVSifpAvUo3JAx/eA7QVKJ3XZ1x4/0v4AmFnyX4=; b=gYqD81szx51C5XLLC+Y8Rf4/xPxY7Mm1G/0dfR4Gc2bUIwlF4xsVsEUg iDiM4EkbV/SA8+YGtqsiBbQnFEkTKGyO4WAcrc9fwaQIBTqc1y/UWF6TF i5mNMMJxqlUxE3IqNbC1jNM+mwHGaVdsIDVYcZHEwtkngrzBZxFE0EsPs 4=; X-IronPort-AV: E=Sophos;i="5.43,368,1503374400"; d="scan'208,217";a="1074316294" Received: from nj09exc008.mhf.mhc ([10.202.134.178]) by corp148mr6-1.mcgraw-hill.com with ESMTP/TLS/AES256-SHA; 18 Oct 2017 15:15:25 -0400 Received: from NJ12EXM001.mhf.mhc (10.180.12.216) by NJ09EXC008.mhf.mhc (10.202.134.178) with Microsoft SMTP Server (TLS) id 8.3.389.2; Wed, 18 Oct 2017 15:15:23 -0400 Received: from NJ12EXM002.mhf.mhc (10.180.12.217) by NJ12EXM001.mhf.mhc (10.180.12.216) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 18 Oct 2017 15:15:23 -0400 Received: from NJ09MSG070.mhf.mhc (198.45.18.131) by NJ12EXM002.mhf.mhc (10.180.12.217) with Microsoft SMTP Server (TLS) id 15.0.1210.3 via Frontend Transport; Wed, 18 Oct 2017 15:15:23 -0400 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (216.32.180.175) by spglobal.com (198.45.18.131) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Wed, 18 Oct 2017 15:15:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spgl.onmicrosoft.com; s=selector1-spglobal-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PcfEnMsKKwjjub0pECVgmExurVkk70NcfvnrwZ0VBgM=; b=Dc8a6du3EYFmKB2PpArs5nXIND41ouv6/WJ2sivdEzkA4Cm15i8M8lTBFE6JQ+HUPyVOGmD4neCX09d9uYLu1U9yvWiaZeOFesihBChO04+16hyMgGPNaUfkomrsTb3n2UxiuF/M+2Dc3JsCscfpw62o+gqDPXBh+EzSS2BSTHw= Received: from DM5PR10MB2043.namprd10.prod.outlook.com (10.175.90.146) by DM5PR10MB2044.namprd10.prod.outlook.com (10.175.90.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 18 Oct 2017 19:15:19 +0000 Received: from DM5PR10MB2043.namprd10.prod.outlook.com ([10.175.90.146]) by DM5PR10MB2043.namprd10.prod.outlook.com ([10.175.90.146]) with mapi id 15.20.0077.022; Wed, 18 Oct 2017 19:15:19 +0000 From: "Beach, Daniel" To: "solr-user@lucene.apache.org" Subject: Querying fields that don't exist in every collection Thread-Topic: Querying fields that don't exist in every collection Thread-Index: AdNIRUHEGD5Aqj9ZRIW5J7NnwAvgdw== Date: Wed, 18 Oct 2017 19:15:18 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Daniel.Beach@spglobal.com; x-originating-ip: [216.197.69.133] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR10MB2044;20:uvatOxbeOteZC4I2lz2DXmPLUbrEsm38xdgHJ0ymyCLi9VbEC5PZTy2FkM1wux3cu2Z9x5dvWIOkwLe4D1aGVk3ESD9NnS05KjkCxDIoKD/dwmM5Z/3itrcCLRQkgbMAED/n+J7IYAPGDFufzYtFiDfujRE8k5HG05WyUYL3Dd+gn+yBK53V+wQzc1HTQX/pGleQ3Ba5JbpjmWlW1ZtlFnzuFpvcx+fVD/+yHib8eABuSZOcOwMJ/868bELrSCZ2fquwOe+tyA8JaUVYY0kpsGajpbKa/dYfMDCk/OVOacp6pCP1yJQQ+rEWnAnrOvZgSbnO65OP3lJZZ1Uf/xTwLxHkRl2/HCrfmhn6isJSx2pU0gJhRlJPMRKkCgLRvZ4D3TD/XUrjLCYO6wNi1KeDbKSNSsNaMPDfWX9mGBaAPLXFsNYy1hcf0R50ykiPDJPJyVIceqe1aLWyqv/biHhbcnoBMcGDJUXRcu92P1unaxd3/zbO6D0zYpgt4fBh95TQ x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: dff21623-8551-456d-37e7-08d5165c9253 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:DM5PR10MB2044; x-ms-traffictypediagnostic: DM5PR10MB2044: x-exchange-antispam-report-test: UriScan:(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR10MB2044;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR10MB2044; x-forefront-prvs: 0464DBBBC4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39860400002)(346002)(376002)(81584002)(199003)(189002)(53754006)(33656002)(101416001)(3280700002)(2501003)(6436002)(6916009)(74316002)(8676002)(50986999)(3660700001)(5660300001)(54356999)(68736007)(2900100001)(81166006)(7696004)(551944002)(478600001)(81156014)(6116002)(66066001)(9686003)(14454004)(25786009)(77096006)(6306002)(8936002)(790700001)(102836003)(3846002)(54896002)(106356001)(6506006)(7736002)(2351001)(53936002)(86362001)(55016002)(5640700003)(2906002)(99286003)(189998001)(105586002)(97736004)(72206003)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR10MB2044;H:DM5PR10MB2043.namprd10.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM5PR10MB204345E511ACAB8851A72438F54D0DM5PR10MB2043namp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2017 19:15:18.8960 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8f3e36ea-8039-4b40-81a7-7dc0599e8645 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR10MB2044 X-OriginatorOrg: spglobal.com archived-at: Wed, 18 Oct 2017 19:15:36 -0000 --_000_DM5PR10MB204345E511ACAB8851A72438F54D0DM5PR10MB2043namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello all, I'm running into an issue where adding a field to the qf changes the parsed= query if that field doesn't exist in the Solr index. Our use case for doin= g this is that we have multiple collections and many of our queries leverag= e aliases to search across several of them simultaneously. While we have a = common group of fields that is shared across schemas, it is often the case = that we need to use collection-specific fields to boost one content type ov= er another. Here is the query debug output from a query that only searches on existing = fields. This is the intended outcome. q=3Dcompanies%20NOT%20brands*&qf=3DText&wt=3Djson&debug=3Dquery&defType= =3Dedismax "rawquerystring":"companies NOT brands*", "querystring":"companies NOT brands*", "parsedquery":"(+(DisjunctionMaxQuery((Text:company)) -DisjunctionMaxQu= ery((Text:brands*))))/no_coord", "parsedquery_toString":"+((Text:company) -(Text:brands*))", "QParser":"ExtendedDismaxQParser", When a "BOGUS" field name is added to the second query suddenly the query o= perators aren't interpreted correctly, and wildcards get dropped. q=3Dcompanies%20NOT%20brands*&qf=3DText%20BOGUS&wt=3Djson&debug=3Dquery= &defType=3Dedismax "rawquerystring":"companies NOT brands*", "querystring":"companies NOT brands*", "parsedquery":"(+(DisjunctionMaxQuery((Text:company)) DisjunctionMaxQue= ry((Text:not)) DisjunctionMaxQuery((Text:brand))))/no_coord", "parsedquery_toString":"+((Text:company) (Text:not) (Text:brand))", "QParser":"ExtendedDismaxQParser" These results are from Solr 6.5.0 and 5.5, querying against a single collec= tion endpoint. Is this Solr's expected functionality? Hopefully I'm just bl= anking on something simple here. Thanks, Daniel Beach ________________________________ The information contained in this message is intended only for the recipien= t, and may be a confidential attorney-client communication or may otherwise= be privileged and confidential and protected from disclosure. If the reade= r of this message is not the intended recipient, or an employee or agent re= sponsible for delivering this message to the intended recipient, please be = aware that any dissemination or copying of this communication is strictly p= rohibited. If you have received this communication in error, please immedia= tely notify us by replying to the message and deleting it from your compute= r. S&P Global Inc. reserves the right, subject to applicable local law, to = monitor, review and process the content of any electronic message or inform= ation sent to or from S&P Global Inc. e-mail addresses without informing th= e sender or recipient of the message. By sending electronic message or info= rmation to S&P Global Inc. e-mail addresses you, as the sender, are consent= ing to S&P Global Inc. processing any of your personal data therein. --_000_DM5PR10MB204345E511ACAB8851A72438F54D0DM5PR10MB2043namp_--