refactor: migrate elasticsearch to opensearch#2562
refactor: migrate elasticsearch to opensearch#2562Junjiequan wants to merge 52 commits intomasterfrom
Conversation
640451b to
48c958d
Compare
|
|
||
| //Tokenizers | ||
| export const autocomplete_tokenizer: AnalysisEdgeNGramTokenizer = { | ||
| export const autocomplete_tokenizer: any = { |
There was a problem hiding this comment.
I'm confused by the diff. It says a bunch of files are changed in folder elastic-search but the folder doesn't exist anymore when checking out this branch. When I search for lines like these, they don't exist anywhere either 🤔
There was a problem hiding this comment.
The folder is now renamed to opensearch
There was a problem hiding this comment.
Yes I know. But the diff was incorrect. Now it says outdated and the problem is gone...
267be4c to
c2710bb
Compare
|
@minottic |
72e4205 to
259a95d
Compare
ah ok, thanks. I was a bit puzzled because the tests are modified for the v4 controllers, but I did not see changes in the code that made me think opensearch was applied to v4. I agree v4 changes can come later if so |
minottic
left a comment
There was a problem hiding this comment.
thanks a lot for the feature and for the patience!
f0341b4 to
c5ca364
Compare
c5ca364 to
5fa33ad
Compare
cb52972 to
572130e
Compare
Description
THis PR migrates the search integration from Elasticsearch to OpenSearch.
Changes
Dependencies
Code Changes
Configuration
Search Integration
Data Synchronization
Notes:
opensearchQuery extracts the $text query, searches OpenSearch, retrieves dataset IDs up to the provided limit (default: 1000), and then applies additional filtering using MongoDB queries
opensearchFacet extracts the $text query, searches OpenSearch, and retrieves results up to the index setting max_result_window. The example configuration sets this to 2000000, which may impact performance depending on server capacity and dataset volume
If performance issues arise with large result sets, alternative approaches such as pagination, scroll queries, or other optimizations can be considered as future improvements
Tests included
Documentation
official documentation info