https://github.com/zicht/solr-bundle
Library - ZichtSolrBundle - Integrate with SOLR
https://github.com/zicht/solr-bundle
packagist
Last synced: 2 months ago
JSON representation
Library - ZichtSolrBundle - Integrate with SOLR
- Host: GitHub
- URL: https://github.com/zicht/solr-bundle
- Owner: zicht
- License: mit
- Created: 2016-10-05T10:25:02.000Z (over 9 years ago)
- Default Branch: release/7.x
- Last Pushed: 2025-01-16T10:37:54.000Z (over 1 year ago)
- Last Synced: 2025-04-22T17:23:17.432Z (about 1 year ago)
- Topics: packagist
- Language: PHP
- Size: 616 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# `zicht/solr-bundle`
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 `` 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