You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by amit rohatgi <so...@gmail.com> on 2007/04/17 19:45:57 UTC
[acts_as_solr] Is this correct way to change solr_configuration
Hi
I am new acts_as_solr plug in and exploring the plug in potential.
I tried to experiment the plug in with existing table having primary
key as string. Earlier it failed to get me correct results and
complain for primary not to be integer. Thereafter I modified model
solr_configuration
Model.solr_configuration = { :type_field =>
"type_t", :primary_key_field => "pk_s" }.
Now, I can now query the index and get the results for find_id_by_solr
gets me the desired results.
Meanwhile running the same query with find_by_solr always returns
duplicated model record across the array. I am not sure what am I
missing to get such kind of results.
-dev