Skip to content

Commit

Permalink
Merge pull request #254 from Firesphere/hans/guzzle-to-psr
Browse files Browse the repository at this point in the history
Change Guzzle HTTP Adapter to PSR Adapter
  • Loading branch information
Firesphere authored Aug 18, 2022
2 parents 1db2f14 + 7d1577c commit bb22cec
Show file tree
Hide file tree
Showing 24 changed files with 6,422 additions and 57 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ create_index_requirements: &CircleCITestIndexReqs
core_check: &CheckSolrCore
name: Check Solr Core - CircleCITestIndex is successfully created
command: |
RESPONSE=$(echo $(curl -u solr:SolrRocks -I http://localhost:8983/solr/CircleCITestIndex/admin/ping | head -n1 ) | grep -o '200 OK')
RESPONSE=$(echo $(curl -I http://localhost:8983/solr/CircleCITestIndex/admin/ping | head -n1 ) | grep -o '200 OK')
if [[ $RESPONSE != '200 OK' ]]; then echo "Solr Core - CircleCITestIndex is not created"; exit 1; fi
echo "CircleCITestIndex is successfully created"
composer: &composerRequirements
name: Composer requirements
command: |
composer require myclabs/deep-copy:1.9.1 silverstripe/recipe-cms --no-progress
composer config --no-interaction allow-plugins.composer/installers true
composer config --no-interaction allow-plugins.silverstripe/vendor-plugin true
composer config --no-interaction allow-plugins.silverstripe/recipe-plugin true
composer require myclabs/deep-copy:1.9.1 silverstripe/recipe-cms:^4.10 --no-progress
composer update --no-progress
composer vendor-expose
db_build: &dev_build
Expand All @@ -50,9 +53,9 @@ jobs:
environment:
CC_TEST_REPORTER_ID: 586f7041e9f71c44946cdfe8bce27d66c6271d173ec291c2a9aa7e1b56667873
docker:
- image: ssmarco/php-solr:latest
- image: ssmarco/php-solr:7.4
environment: *environment
- image: circleci/mysql:5.7
- image: cimg/mariadb:10.8
environment: *mysql

working_directory: /var/www/html
Expand Down Expand Up @@ -139,7 +142,7 @@ jobs:
docker:
- image: brettt89/silverstripe-web:7.1-platform
environment: *environment
- image: circleci/mysql:5.7
- image: cimg/mariadb:10.8
environment: *mysql

working_directory: /var/www/html
Expand All @@ -149,6 +152,7 @@ jobs:
- checkout
- run: *errorlog
- run: echo '{}' > composer.lock
- run: php -v
- restore_cache:
keys:
- silverstripe-search-cache-v4-{{ checksum "composer.lock" }}
Expand Down Expand Up @@ -303,5 +307,5 @@ workflows:
dobuild:
jobs:
- solr8
- solr4
# - solr4
- docs
36 changes: 36 additions & 0 deletions Solr/9/extras/elevate.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
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.
-->

<!-- If this file is found in the config directory, it will only be
loaded once at startup. If it is found in Solr's data
directory, it will be re-loaded every commit.
-->

<elevate>
<query text="foo bar">
<doc id="1"/>
<doc id="2"/>
<doc id="3"/>
</query>

<query text="ipod">
<doc id="MA147LL/A"/> <!-- put the actual ipod at the top -->
<doc id="IW-02" exclude="true"/> <!-- exclude this cable -->
</query>

</elevate>
Loading

0 comments on commit bb22cec

Please sign in to comment.