Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A5E018220 for ; Wed, 30 Sep 2015 18:51:31 +0000 (UTC) Received: (qmail 24507 invoked by uid 500); 30 Sep 2015 18:51:23 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 24444 invoked by uid 500); 30 Sep 2015 18:51:23 -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 24432 invoked by uid 99); 30 Sep 2015 18:51:23 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2015 18:51:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0D781180982 for ; Wed, 30 Sep 2015 18:51:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.199 X-Spam-Level: ** X-Spam-Status: No, score=2.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9907dz15PBb2 for ; Wed, 30 Sep 2015 18:51:21 +0000 (UTC) Received: from mail-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id F413A20313 for ; Wed, 30 Sep 2015 18:51:20 +0000 (UTC) Received: by ioii196 with SMTP id i196so58718264ioi.3 for ; Wed, 30 Sep 2015 11:51:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=qZiG7ABinHyy2wZ3oNqM3HVsH3tfi7cRLL6DFitVlo0=; b=QVY1mK5KLfzTAgBjCyHq8116a+vKn0OyHDwUzqyuxcLPqAhz6IMnvJtvh8Ci2IThQK ueXParncX9fqWP93Gia9zlZsMDYG+CAYhMI7Be48aVSGU/ZxbMFsbLnUU37rNtkOyI0S HT0W7TivLe22GdFFPs8Jq2OwDtuWtTuXzhCyWV/kGuVPau44GewMIcwUjSTsuAwZiiJt PTHrs7k/1x589CWwzvCCQ+DXWhGdhw3xByjwN0+igqwY+P4oCKHDDSpyMn6DM/PZKdAZ K7tPNomnjI8UCSB8lTzL0TYEGy9sd9MIkpebZycxRBukpHlfhcEs8+coYpFJYc5Wkc2k RtdA== MIME-Version: 1.0 X-Received: by 10.107.14.211 with SMTP id 202mr6642720ioo.149.1443639079911; Wed, 30 Sep 2015 11:51:19 -0700 (PDT) Received: by 10.107.9.223 with HTTP; Wed, 30 Sep 2015 11:51:19 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Oct 2015 00:21:19 +0530 Message-ID: Subject: Re: Find records with no values in solr.LatLongType fied type From: Ishan Chattopadhyaya To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=001a11409d468adce80520fb6af8 --001a11409d468adce80520fb6af8 Content-Type: text/plain; charset=UTF-8 There's also a function, exists(), which might work here, and result in a neater query. e.g. something like: q=*:* -exists(usrlatlong_0_coordinate) Haven't tried it, though. https://cwiki.apache.org/confluence/display/solr/Function+Queries#FunctionQueries-AvailableFunctions On Wed, Sep 30, 2015 at 8:17 PM, Kamal Kishore Aggarwal < kkroyal.192@gmail.com> wrote: > Thanks Erick..it worked.. > > On Wed, Sep 16, 2015 at 9:21 PM, Erick Erickson > wrote: > > > Top level queries need a *:* in front, something like > > q=*:* -usrlatlong_0_coordinate:[* TO *] > > > > I just took a quick check and just using usrlatlong:[* TO *] > > encounters a parse error. > > > > P.S. It would help if you told us what you _did_ receive > > when you tried your options. Parse errors? All docs? > > > > Best, > > Erick > > > > On Mon, Sep 14, 2015 at 10:58 PM, Kamal Kishore Aggarwal > > wrote: > > > Hi, > > > > > > I am working on solr 4.8,1. I am trying to find the docs where > > latlongtype > > > have null values. > > > > > > I have tried using these, but not getting the results : > > > > > > 1) http://localhost:8984/solr/IM-Search/select?q.alt=-usrlatlong:[' ' > > TO *] > > > > > > 2) http://localhost:8984/solr/IM-Search/select?q.alt=-usrlatlong:[* TO > > *] > > > > > > Here's the configurations : > > >> > >> subFieldSuffix="_coordinate"/> > > >> stored="true" > > >> required="false" multiValued="false" /> > > > > > > > > > Please help. > > > --001a11409d468adce80520fb6af8--