Created
September 1, 2013 18:00
-
-
Save antoinebqain/6406142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
models/ad.rb : | |
# To change this template, choose Tools | Templates | |
# and open the template in the editor. | |
class Ad | |
def initialize | |
end | |
def self.getMostRated | |
solr = RSolr.connect :url => 'http://127.0.0.1:20030/solr_waseet' | |
Rails.logger.info 'Solr', solr.inspect | |
@docs = solr.get 'select', :param => { | |
:q => '*:*', | |
:sort => 'ps_most_rated', | |
:fl => 'entity_id, score', | |
:rows => 10 | |
} | |
end | |
end | |
Error : | |
Extracted source (around line #13): | |
Rails.logger.info 'Solr', solr.inspect ( highlighted in browser ) | |
@docs = solr.get 'select', :param => { | |
:q => '*:*', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment