You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
273 B
19 lines
273 B
13 years ago
|
require 'open-uri'
|
||
13 years ago
|
require 'rexml/document'
|
||
13 years ago
|
|
||
|
|
||
13 years ago
|
class SolrController < ApplicationController
|
||
13 years ago
|
include SolrHelper
|
||
13 years ago
|
|
||
13 years ago
|
def simple_query
|
||
13 years ago
|
@search = request[:q]
|
||
13 years ago
|
@results = []
|
||
13 years ago
|
if @search != nil
|
||
13 years ago
|
@results = get_results(@search)
|
||
13 years ago
|
end
|
||
|
end
|
||
|
|
||
13 years ago
|
def index
|
||
|
end
|
||
13 years ago
|
end
|