Commit 4d7e7a4316868e9bb4826ad797d2d8b409ddebb5
1 parent
8e197eb4
Exists in
staging
and in
42 other branches
Add missing file and fix gitignore
Showing
2 changed files
with
29 additions
and
6 deletions
Show diff stats
gitignore.example
| @@ -12,9 +12,9 @@ config/mongrel_cluster.yml | @@ -12,9 +12,9 @@ config/mongrel_cluster.yml | ||
| 12 | config/solr.yml | 12 | config/solr.yml |
| 13 | config/plugins | 13 | config/plugins |
| 14 | config/thin.yml | 14 | config/thin.yml |
| 15 | -index | ||
| 16 | -locale | ||
| 17 | -log | 15 | +/index |
| 16 | +/locale | ||
| 17 | +/log | ||
| 18 | public/articles | 18 | public/articles |
| 19 | public/image_uploads | 19 | public/image_uploads |
| 20 | public/thumbnails | 20 | public/thumbnails |
| @@ -29,9 +29,9 @@ db/production.db | @@ -29,9 +29,9 @@ db/production.db | ||
| 29 | db/test.db | 29 | db/test.db |
| 30 | doc/noosfero/*.xhtml | 30 | doc/noosfero/*.xhtml |
| 31 | doc/noosfero/*/*.xhtml | 31 | doc/noosfero/*/*.xhtml |
| 32 | -tags | ||
| 33 | -pkg | ||
| 34 | -solr | 32 | +/tags |
| 33 | +/pkg | ||
| 34 | +/solr | ||
| 35 | *~ | 35 | *~ |
| 36 | *.swp | 36 | *.swp |
| 37 | debian/*.log | 37 | debian/*.log |
vendor/plugins/acts_as_solr_reloaded/lib/solr/request/json_update.rb
0 → 100644
| @@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
| 1 | +# The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| 2 | +# (the "License"); you may not use this file except in compliance with | ||
| 3 | +# the License. You may obtain a copy of the License at | ||
| 4 | +# | ||
| 5 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
| 6 | +# | ||
| 7 | +# Unless required by applicable law or agreed to in writing, software | ||
| 8 | +# distributed under the License is distributed on an "AS IS" BASIS, | ||
| 9 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 10 | +# See the License for the specific language governing permissions and | ||
| 11 | +# limitations under the License. | ||
| 12 | + | ||
| 13 | +# a parent class for all requests that go through the solr update handler | ||
| 14 | +# TODO: Use new xml update handler for better error responses | ||
| 15 | +class Solr::Request::JsonUpdate < Solr::Request::Base | ||
| 16 | + def response_format | ||
| 17 | + :xml | ||
| 18 | + end | ||
| 19 | + | ||
| 20 | + def handler | ||
| 21 | + 'update/json' | ||
| 22 | + end | ||
| 23 | +end |