Demo implementation for migration of ES to SOLR#1270
Open
RayyanSeliya wants to merge 2 commits intometabrainz:masterfrom
Open
Demo implementation for migration of ES to SOLR#1270RayyanSeliya wants to merge 2 commits intometabrainz:masterfrom
RayyanSeliya wants to merge 2 commits intometabrainz:masterfrom
Conversation
Signed-off-by: RayyanSeliya <rayyanseliya786@gmail.com>
Contributor
Author
|
ignore the lint errors :) |
Contributor
|
@RayyanSeliya nice |
This file contains hidden or 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
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.
Problem
i have built a small solr demo for the bookbrainz “es -> solr” migration so we can validate the end-to-end approach (schema/analyzers, indexing, and website search queries) before doing a full migration and get to know where we can have a potential errors migrating and tackle those in the upcoming full migration
this pr is for draft demo for review/feedback not for production !
the demo focuses on:
Solution
this PR adds a runnable solr configset + a minimal solr search implementation for the website.
key parts:
solr-config/conf/:schema.xml(field types + analyzers)solrconfig.xml(request handlers, including/autocomplete)mapping-chars.txt(pre-token normalization)docker-compose.solr.ymlsetup-solr-with-icu.shscripts/index-solr-test-data.jssrc/common/helpers/search-test-data.tssrc/common/helpers/search-solr.ts(solr-based search logic)src/common/helpers/search-switch.ts(toggles solr vs elastic viaUSE_SOLR)src/server/app.js+src/server/routes/search.tsxwired to use the switchnotes / constraints:
/autocompletehandler) but is not integrated into the main website search ui yetmanual verification
i tested the website search with the demo dataset and recorded a walkthrough video.
tested (high level):
lovecraft,tolkien,murakami,austen,asimovcthulhu,lord rings,kafka,pride prejudice,foundationcthulhu 1928,anniversary,kafka vintage, isbn978-0-486-27204-8, ids likenm0522454,Q892penguin,vintage,foundation series,trilogy,LOTRラヴクラフト,トールキン,村上,Остин,指輪物語lovecraftshows the author and “the call of cthulhu”, and filteringType: Worknarrows resultsvideo:
demo-solr-results.online-video-cutter.com.1.mp4
AI usage
Action
bash setup-solr-with-icu.shUSE_SOLR=true ./develop.shhttp://localhost:9099and try the search queries listed above