Hi Yonik,

I verified the url that mentioned in the mail and I got the right result on
the uri.

The field type for the primary key field is string. And below is the
definition for *_i in the schema.xml file

<fields>
   <field name="id" type="string" indexed="true" stored="true"/>
   <field name="default" type="text" indexed="true" stored="false"
multiValued="true"/>
   <dynamicField name="*_i" type="integer" indexed="true" stored="true"/>
   <dynamicField name="*_t" type="text" indexed="true" stored="true"/>
   <dynamicField name="*_f" type="float" indexed="true" stored="true"/>
   <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
   <dynamicField name="*_d" type="date" indexed="true" stored="true"/>
   <dynamicField name="*_s" type="string" indexed="true" stored="true"/>
   <dynamicField name="*_ri" type="sint" indexed="true" stored="true"/>
   <dynamicField name="*_rf" type="sfloat" indexed="true" stored="true"/>
   <dynamicField name="*_facet" type="string" indexed="true" stored="true"/>
 </fields>

-Amit


Yonik Seeley wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-when-try-to-find_by_solr-tf3602498.html#a10066458
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to