On 4/18/07, solruser <[EMAIL PROTECTED]> wrote:
Below is the error the I received when I tried to query the solr using
find_by_solr. below bold shows where I output the response header from the
solr server

>> Post.find_by_solr("amit")
query "(amit) AND type_t:Post"
response
"{'responseHeader'=>{'status'=>0,'QTime'=>0,'params'=>{'fl'=>'pk_i','q'=>'(amit)
AND
type_t:Post','wt'=>'ruby'}},'response'=>{'numFound'=>1,'start'=>0,'docs'=>[{'pk_i'=>ae5a8W7DOr25GRabmcoL7T}]}}"

It possibly looks like you might have hit a bug in the ruby response writer?
What is the fieldType of field pk_i?  Could you post the field
definition of *_i and it's corresponding fieldType?

You could also verify the problem with the following direct query (and
look for a correct value of pk_i):
http://localhost:8983/solr/select?q=(amit) AND
type_t:Post&wt=ruby&fl=pk_i&indent=on

-Yonik

Reply via email to