box-o-sand/rails/hamster/app/controllers/solr_controller.rb

19 lines
273 B
Ruby

require 'open-uri'
require 'rexml/document'
class SolrController < ApplicationController
include SolrHelper
def simple_query
@search = request[:q]
@results = []
if @search != nil
@results = get_results(@search)
end
end
def index
end
end