> I am trying the following query and get only zero results (I
> am supposed to
> get 10 results according to my dataset)
> 
> *http://mymachine:8983/solr/select/?q=-(HOSTID:302)*
> 
> I also tried the below query and got zero results yet
> again.
> 
> *http://mymachine:8983/solr/select/?q=NOT(HOSTID:302)*
> 
> However, I get 10 results(expected) when I put the query
> this way,
> 
> *http://mymachine:8983/solr/select/?q=-(HOSTID:302)AND(*:*)*
> 
> Why is this strange thing happening? Is it a bug in solr or
> am I missing
> something?

Why don't you just use /solr/select/?q=-HOSTID:302

Reply via email to