Skip to content

Commit

Permalink
Remove all solr related code
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Sep 13, 2017
1 parent 9ec4323 commit bcc2e7c
Show file tree
Hide file tree
Showing 12 changed files with 135 additions and 1,166 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Packagist

Package Repository Website for Composer, see the [about page](http://packagist.org/about) on [packagist.org](http://packagist.org/) for more.

This project is not meant for re-use. It is open source to make it easy to contribute but we provide no support if you want to run your own, and will do breaking changes without notice.

Requirements
------------

- MySQL for the main data store
- Redis for some functionality (favorites, download statistics)
- Solr for search
- git/svn/hg depending on which repositories you want to support

Installation
Expand All @@ -24,18 +25,6 @@ Installation

You should now be able to access the site, create a user, etc.

Setting up search
-----------------

The search index uses [Solr](http://lucene.apache.org/solr/) 3.6, so you will have to install that on your server.
If you are running it on a non-standard host or port, you will have to adjust the configuration. See the
[NelmioSolariumBundle](https://github.com/nelmio/NelmioSolariumBundle) for more details.

You will also have to configure Solr. Use the `schema.xml` provided in the doc/ directory for that.

To index packages, just run `app/console packagist:index`. It is recommended to set up a cron job for
this command, and have it run every few minutes.

Day-to-Day Operation
--------------------

Expand Down
1 change: 0 additions & 1 deletion app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public function registerBundles()
new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
new Snc\RedisBundle\SncRedisBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Nelmio\SolariumBundle\NelmioSolariumBundle(),
new Nelmio\SecurityBundle\NelmioSecurityBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Nelmio\CorsBundle\NelmioCorsBundle(),
Expand Down
8 changes: 0 additions & 8 deletions app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,6 @@ hwi_oauth:
options:
csrf: true

nelmio_solarium:
clients:
default:
host: '%solr_host%'
port: '%solr_port%'
path: '%solr_path%'
core: '%solr_core%'

nelmio_cors:
defaults:
allow_origin: ['*']
Expand Down
4 changes: 0 additions & 4 deletions app/config/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ parameters:
database_name_test: packagist_test
redis_dsn_test: redis://127.0.0.1/14
assets_version: 1234
solr_host: 127.0.0.1
solr_port: 8983
solr_path: /solr
solr_core: collection1
trusted_ip_header: ''
5 changes: 0 additions & 5 deletions app/config/parameters.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ parameters:
redis_dsn_test: redis://127.0.0.1/14
redis_session_dsn: redis://localhost/2

solr_host: 127.0.0.1
solr_port: 8983
solr_path: /solr
solr_core: collection1

locale: en

google_analytics:
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"composer/composer": "^1.3@dev",
"friendsofsymfony/user-bundle": "^2.0@dev",
"hwi/oauth-bundle": "^0.4",
"nelmio/solarium-bundle": "^1.0",
"nelmio/security-bundle": "^1.0",
"predis/predis": "^1.0",
"snc/redis-bundle": "^2.0",
Expand Down
99 changes: 1 addition & 98 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit bcc2e7c

Please sign in to comment.