zicht / solr-bundle
Solr utilities for Symfony
Installs: 19 068
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 10
Type:symfony-bundle
Requires
- php: ^7.4 || ^8
- doctrine/common: ^2.2 || ^3
- doctrine/orm: ^2.13
- guzzlehttp/guzzle: ^6.3 || ^7
- sonata-project/admin-bundle: ^4
- symfony/console: ^5.4
- symfony/framework-bundle: ^5.4
- zicht/framework-extra-bundle: ^10
- zicht/url-bundle: ^7
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- phpunit/phpunit: ^9.6
- vimeo/psalm: ^5
- dev-release/7.x
- 7.1.2
- 7.1.1
- 7.1.0
- 7.0.1
- 7.0.0
- 6.2.1
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.0
- 5.1.1
- 5.1.0
- 5.0.8
- 5.0.7
- 5.0.6
- 5.0.5
- 5.0.4
- 5.0.3
- 5.0.2
- 5.0.1
- 5.0.0
- 4.3.1
- 4.3.0
- 4.2.8
- 4.2.7
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.5.0
- 3.4.10
- 3.4.9
- 3.4.8
- 3.4.7
- 3.4.6
- 3.4.5
- 3.4.4
- 3.4.3
- 3.4.2
- 3.4.1
- 3.4.0
- 3.3.0
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.2
- 3.0.1
- 3.0.0
- 3.0.0-rc.2
- 3.0.0-beta.3
- 3.0.0-beta.2
- 3.0.0-beta.1
- 3.0.0-alpha.1
- 2.8.2
- 2.8.1
- 2.8.0
- 2.8.0-beta.3
- 2.8.0-beta.2
- 2.8.0-beta.1
- 2.7.2
- 2.7.1
- 2.7.0
- 2.7.0-rc.1
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0-rc.2
- 2.6.0-rc.1
- 2.6.0-beta.2
- 2.6.0-beta.1
- 2.5.7
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.5.0-rc.1
- 2.4.2
- 2.4.1
- 2.4.0
- 2.4.0-rc.2
- 2.4.0-rc.1
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.2-rc.1
- 2.3.1
- 2.3.0
- 2.3.0-rc.2
- 2.3.0-rc.1
- 2.2.2
- 2.2.2-rc.2
- 2.2.2-rc.1
- 2.2.1
- 2.2.0
- 2.2.0-rc.1
- 2.2.0-beta.1
- 2.1.0-beta.2
- 2.1.0-beta.1
- 2.0.0
- 2.0.0-alpha.3
- 2.0.0-alpha.2
- 2.0.0-alpha.1
- 1.3.0
- 1.3.0-rc.3
- 1.3.0-rc.2
- 1.3.0-rc.1
- 1.2.1
- 1.2.0
- 1.1.2-rc.1
- 1.1.1
- 1.1.0
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4.2
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0
- dev-feature-symfony-6
- dev-release/8.x
- dev-release/6.x
- dev-release/5.x
- dev-release/4.x
- dev-release/2.8.x
- dev-release/3.x
- dev-v3-index-status-manager-WIP
- dev-release/artez
- dev-release/2.5.x
- dev-release/2.3.x
- dev-boudewijn-zicht-patch-1
- dev-release/1.3.x
This package is auto-updated.
Last update: 2024-11-03 12:42:06 UTC
README
Provides a layer to index and search content in a SOLR instance.
Features
- Easy bridge for syncing data from doctrine entities to SOLR
- Base class template for creating faceted search engines
- Command line interface for accessing the solr instance
Indexing
TODO: write a small tutorial on how to setup indexing
Update
The /update
endpoint of SOLR accepts a simple post of text fields to index a document.
TODO: Add a explaining part on how to use the Update query
Extract
The /update/extract
endpoint of SOLR accepts a simple post of text fields and additionally PDF, DOC, DOCX and other types.
For further explanation refer to the documentation of SOLR covering this. https://lucene.apache.org/solr/guide/6_6/uploading-data-with-solr-cell-using-apache-tika.html
In short. All the text fields covered by the /update
endpoint are prefixed with literal.
so id
becomes literal.id
.
The field to which you want SOLR to map the title and contents of the document should be declared. Our Extract query
does default map the field title
extracted from the document to document_file_title
and the content
field is
mapped to document_file_content
. These fields can be copied to the desired fields in the schema of your SOLR config.
The choice to separate these fields is to give you control in terms of mapping and searching through these fields.
Use this <copyField source="document_file_content" dest="content"/>
in your schema to define the document_file_content
copied to your default content
field to say enable searching in content
just like all other documents in a search.
Mapping
TODO: Write documentation about mapping documents to SOLR
Searching
TODO: Write documentation about using SOLR for searching purposes.
Maintainers
- Jochem Klaver jochem@zicht.nl