-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EZP-26807: First implementation for SolrCloud support #86
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pspanja
force-pushed
the
solr-cloud-support-2.0
branch
from
December 23, 2016 08:48
f396b67
to
7b5d46c
Compare
pspanja
force-pushed
the
solr-cloud-support-2.0
branch
from
December 23, 2016 11:30
7b5d46c
to
755396a
Compare
pspanja
changed the title
[WIP] First implementation for SolrCloud support
EZP-26807: First implementation for SolrCloud support
Dec 23, 2016
Now added an issue and some description. Any feedback welcome. |
andrerom
reviewed
Mar 8, 2017
|
||
download() { | ||
case ${SOLR_VERSION} in | ||
4.10.4|6.3.0 ) | ||
6.3.0 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rebase needed to add 6.4.1
Closed in favor #137 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://jira.ez.no/browse/EZP-26807
This targets Solr search engine v2.0
This implements support for SolrCloud. Support for using Solr in standalone mode is here removed, meaning that from now on Solr search engine will have to be used with Solr backend running in cloud mode.
implicit
routingThe approach taken here is using
implicit
document router to control where the documents are indexed. This is achieved by specifying special field in the indexed document that holds the identifier of the shard it's to be indexed in. In order for that to work the collection must to be created with these parameters:router.name=implicit
router.field=<field name>
Unfortunately implicit routing is not supported by the bundled Solr start script, which can create a collection with
compositeId
router only, meaning that setting up the cloud for local development will be little bit more involved. Solr initialization script for Travis that is provided here can be used as an example. For more information see:Previously, running Solr in standalone/multicore mode enabled using a separate schema per core. Usually that would mean a dedicated language analysis would be configured per core. With Solr running in the cloud mode, a collection with all it's shards must have the same configuration. That means we will need to handle multiple (per language) full text fields in the same schema. That is yet to be implemented on this PR. For more details on the available options see Semantic & Multilingual Strategies in Lucene/Solr. For possible future support for dynamic analyzers see SOLR-6492.
compositeId
routingWith
compositeId
routing, exact destination shard for a document is not strictly controlled. With it, we provide the shard key and Solr takes care of choosing the exact shard by itself. For us, that means it would not be possible to direct a document in a specific language to a shard dedicated for that language.While this might not fit the multilingual setup, it would be desirable for single language setup. The benefit of
compositeId
routing is that shards can be split, which is not possible when usingimplicit
routing. While theoretical document limit per shard is of no concern for us (more that 2 billion documents), being able to split shards is still practical, as Solr node will work best if it has enough memory to cache it's data.Implementing support for
compositeId
routing is left for future improvement.TODOs