On 11-Jun-07, at 7:22 PM, Otis Gospodnetic wrote:

I'm trying to use 'fq' param (see http://wiki.apache.org/solr/ CommonQueryParameters ) with the standard request handler, using a field that is defined as an integer (values 1 or 0), is indexed, and is stored. For some reason, these two return no hits, even though I do have MyIntField with values 0 and 1 in the index:

  http://localhost:8080/solr/select?q=birds&fq=MyIntField:0
  http://localhost:8080/solr/select?q=birds&fq=MyIntField:1


So I tried these, just to see if that makes any difference:
  http://localhost:8080/solr/select?q=birds%20AND%20MyIntField:0
  http://localhost:8080/solr/select?q=birds%20AND%20MyIntField:1
http://localhost:8080/solr/select?q=birds%20AND%20MyIntField:[* TO *]

No go - no hits. Am I doing something obviously wrong? I'm using a Solr nightly from maybe a month ago. I don't recall seeing any bugs with the 'fq' param.

er... since the second batch of queries returned no hits, does that not indicate that the problem _isn't_ with fq? You practically stripped it down to raw lucene territory here.

-MIke

Reply via email to