lib/picky/query/solr.rb in picky-1.2.4 vs lib/picky/query/solr.rb in picky-1.3.0
- old
+ new
@@ -11,27 +11,12 @@
def initialize *index_types
@server = RSolr.connect rescue nil
super *index_types
end
- # # This runs the actual search.
- # #
- # # TODO Remove!
- # #
- # def search tokens, offset = 0
- # results = nil
#
- # duration = timed do
- # results = execute(tokens, offset) || empty_results # TODO Does not work yet
- # end
- # results.duration = duration
#
- # results
- # end
-
- #
- #
def execute tokens, offset = 0
results = Results::Live.new
if server
similar = {}
@@ -59,11 +44,9 @@
end
results.add similar: similar
end
- # TODO
- #
class << results
def to_log query
?* + super
end
end
\ No newline at end of file