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 <kkroyal....@gmail.com> 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 : >> <fieldType name="latlongtype" class="solr.LatLonType" >> subFieldSuffix="_coordinate"/> >> <field name="usrlatlong" type="latlongtype" indexed="true" stored="true" >> required="false" multiValued="false" /> > > > Please help.