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 5E323200BF7 for ; Mon, 9 Jan 2017 10:56:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5CD55160B3E; Mon, 9 Jan 2017 09:56:14 +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 A68A5160B3B for ; Mon, 9 Jan 2017 10:56:13 +0100 (CET) Received: (qmail 32454 invoked by uid 500); 9 Jan 2017 09:56:12 -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 32442 invoked by uid 99); 9 Jan 2017 09:56:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 09:56:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 1C1E6C0254 for ; Mon, 9 Jan 2017 09:56:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.997 X-Spam-Level: ** X-Spam-Status: No, score=2.997 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, KAM_LIVE=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=alfrescosoftware.onmicrosoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id pKKS7FLR6sSB for ; Mon, 9 Jan 2017 09:56:09 +0000 (UTC) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0043.outbound.protection.outlook.com [104.47.34.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A4D165F370 for ; Mon, 9 Jan 2017 09:56:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alfrescosoftware.onmicrosoft.com; s=selector1-alfresco-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/viXEdAsuMt00ZkEA2aROOXlB3EjSj/O6IpK9LXPFEk=; b=5QN7HWLpJ4YYMmg7/K2266c1p7lbJhvYVy139ZTwQvYCXBi64lXZF+Wk14UgFS3mFrMQoxwbtNpRa+0xtT2Bc6zIFUmo6N5ox34sCsjTafNs212XsHmjtEA3aIgIGOeeS832YR+3Aeps8TLKPTqNIvR78p0OUc1KBZYKKc5oW9g= Received: from DM5PR03MB2795.namprd03.prod.outlook.com (10.168.198.20) by DM5PR03MB2794.namprd03.prod.outlook.com (10.168.198.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10; Mon, 9 Jan 2017 09:56:01 +0000 Received: from DM5PR03MB2795.namprd03.prod.outlook.com ([10.168.198.20]) by DM5PR03MB2795.namprd03.prod.outlook.com ([10.168.198.20]) with mapi id 15.01.0817.009; Mon, 9 Jan 2017 09:56:01 +0000 From: Gethin James To: "solr-user@lucene.apache.org" Subject: Re: Regarding /sql -- WHERE <> IS NULL and IS NOT NULL Thread-Topic: Regarding /sql -- WHERE <> IS NULL and IS NOT NULL Thread-Index: AQHSZ4awYgiTDsxRU0+XftAYOQfquKEqQDeAgAWtXkE= Date: Mon, 9 Jan 2017 09:56:00 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=gethin.james@alfresco.com; x-originating-ip: [25.173.23.4] x-ms-office365-filtering-correlation-id: 19fe6d0a-ca02-431f-aaf4-08d43875b7b0 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2794; x-microsoft-exchange-diagnostics: 1;DM5PR03MB2794;7:Wqs47PImK7sQiAy/f/OmE4UlgUAaP85OMM51+9vidf6VUJlUV+y6yX5K05G2yh0K0oS75Yj0ddyhOJen3cd21Y3SxXAnS5WPqUqtf7uia4U1TvkWX0Yv3ZVbt8k9npbpUwBqX6l0M0L/SVffCvRHxS2rgwulpD5Tm8obScy5ioecLYYZvgXANSYVgS+mA/+lG7t445Emkdik0xFjtPK6zlu1vide+8qVutAszgozEPNHQP/xxUnF54dcDHo83OelE4+75gEnKp2xBoiH+GPiq1pbTXEFHCO4uUg26YXbsrRStFHD0MKLjE6wgSIxmYV2dhyM7mgwyszlzW4chYMI5VhL0W/f4ntZ+1L8jPpR4BwuUcvaDD49P6EUBgO/gdWuFueLzxRV14J2VrUAduRoB6pFWLMFTuif88TK776ZxDwZKDyCIiwi/RmPVd+OlQvJCr09c9gV4coc28nvd/rykA== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863)(263907834895145); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148)(6047074);SRVR:DM5PR03MB2794;BCL:0;PCL:0;RULEID:;SRVR:DM5PR03MB2794; x-forefront-prvs: 0182DBBB05 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(7916002)(39450400003)(24454002)(377454003)(199003)(189002)(81166006)(5660300001)(6116002)(189998001)(74316002)(33656002)(8936002)(106116001)(7736002)(7906003)(68736007)(8676002)(86362001)(6306002)(3660700001)(3280700002)(99286003)(2351001)(92566002)(101416001)(2900100001)(54356999)(54896002)(107886002)(2950100002)(6916009)(2501003)(76176999)(229853002)(106356001)(606005)(25786008)(6436002)(7696004)(6506006)(450100001)(122556002)(66066001)(2906002)(38730400001)(50986999)(3846002)(102836003)(97736004)(110136003)(55016002)(5640700003)(77096006)(81156014)(105586002)(9686003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2794;H:DM5PR03MB2795.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: alfresco.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM5PR03MB2795A1BA9C9E919BB5C14B8AF1640DM5PR03MB2795namp_" MIME-Version: 1.0 X-OriginatorOrg: alfresco.com X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jan 2017 09:56:00.7447 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a92a627e-e9ce-48ba-8edb-6c64a4dbcf34 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2794 archived-at: Mon, 09 Jan 2017 09:56:14 -0000 --_000_DM5PR03MB2795A1BA9C9E919BB5C14B8AF1640DM5PR03MB2795namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable For NOT NULL, I had some success using: WHERE field_name <> '' (greater or less than empty quotes) Best regards, Gethin. ________________________________ From: Joel Bernstein Sent: 05 January 2017 20:12:19 To: solr-user@lucene.apache.org Subject: Re: Regarding /sql -- WHERE <> IS NULL and IS NOT NULL IS NULL and IS NOT NULL predicate are not currently supported. Joel Bernstein http://joelsolr.blogspot.com/ On Thu, Jan 5, 2017 at 2:05 PM, radha krishnan wrote: > Hi, > > solr version : 6.3 > > will WHERE <> IS NULL / IS NOT NULL work with the /sql handle= r > ? > > " select name from gettingstarted where name is not null " > > the above query is not returning any documents in the response even if > there are documents with "name"defined > > > Thanks, > Radhakrishnan D > --_000_DM5PR03MB2795A1BA9C9E919BB5C14B8AF1640DM5PR03MB2795namp_--