0a9428093c
git-subtree-dir: RubyFun git-subtree-mainline:a04a502787
git-subtree-split:b01c682613
19 lines
273 B
Ruby
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
|