Erik Hatcher 56ceddd6c0 Add Spellcheck support
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@579743 13f79535-47bb-0310-9956-ffa450edef68
2007-09-26 18:04:49 +00:00

21 lines
745 B
Ruby

# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
class Solr::Response::Spellcheck < Solr::Response::Ruby
attr_reader :suggestions
def initialize(ruby_code)
super
@suggestions = @data['suggestions']
end
end