From 4d7e7a4316868e9bb4826ad797d2d8b409ddebb5 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 9 Apr 2012 12:04:42 +0000 Subject: [PATCH] Add missing file and fix gitignore --- gitignore.example | 12 ++++++------ vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb diff --git a/gitignore.example b/gitignore.example index aef77df..08f5120 100644 --- a/gitignore.example +++ b/gitignore.example @@ -12,9 +12,9 @@ config/mongrel_cluster.yml config/solr.yml config/plugins config/thin.yml -index -locale -log +/index +/locale +/log public/articles public/image_uploads public/thumbnails @@ -29,9 +29,9 @@ db/production.db db/test.db doc/noosfero/*.xhtml doc/noosfero/*/*.xhtml -tags -pkg -solr +/tags +/pkg +/solr *~ *.swp debian/*.log diff --git a/vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb b/vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb new file mode 100644 index 0000000..2a68456 --- /dev/null +++ b/vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb @@ -0,0 +1,23 @@ +# 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. + +# a parent class for all requests that go through the solr update handler +# TODO: Use new xml update handler for better error responses +class Solr::Request::JsonUpdate < Solr::Request::Base + def response_format + :xml + end + + def handler + 'update/json' + end +end -- libgit2 0.21.2