mysql - Rails4 + sunspot search -
i trying use sunspot solr searching rails 4 , mysql.
i defined searchable block in model(eg xyz):
searchable text :name, :stored => true string :id, :stored => true end i want search in "name". "id" primary key. there many other columns in table have nothing search, did not include them in searchable block.
now, when perform search eg "go".. gived results want exactly. however, line displayed on log/console.
completed 200 ok in 126ms (views: 0.0ms | activerecord: 11.0ms | solr: 33.0ms) i want remove active record/db hit completely. thats why had specified :stored => true. db hit still there. performing:
select xyz.* xyz xyz.id in (list of id's satisfy search criteria) is possible remove , sunspot:solr search in stored index , give result?
thanks.
how accessing result? if calling .results method fire db query. should iterate on hits , require field avoid db query.
Comments
Post a Comment