Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
ab40135
MB-57888: Index Update
Likith101 Nov 26, 2024
7740e0f
MB-57888: New apis for index update
Likith101 Jan 9, 2025
62271b2
MB-57888: Added few missing checks for index update
Likith101 Jan 13, 2025
d295df8
MB-57888: Added unit tests covering all update paths
Likith101 Jan 16, 2025
2e96445
MB-57888: Minor Fixes
Likith101 Feb 4, 2025
0410448
MB-57888: Naming changes
Likith101 Feb 7, 2025
4c5dd0b
MB-57888: Added analyser and datetime parser checks
Likith101 Feb 19, 2025
53eebc8
MB-57888: Additional checks for synonyms
Likith101 Feb 20, 2025
d5c4489
MB-57888: Api changes
Likith101 Feb 21, 2025
41ffb3b
MB-57888: Minor Code Refactoring
Likith101 Mar 11, 2025
1611ac5
MB-57888: Addressing review comments
Likith101 Mar 11, 2025
a18fe6f
MB-57888: Fixed typo
Likith101 Mar 12, 2025
829d502
MB-57888: Addressing review comments
Likith101 Mar 14, 2025
b65b4aa
MB-57888: Added checks for all dynamic mappings' analysers and dateti…
Likith101 Mar 14, 2025
2ff5417
MB-57888: Adding documentation and addressing review comments
Likith101 Mar 20, 2025
3d6cf2f
MB-57888: Addressing review comments and race conditions
Likith101 Mar 21, 2025
00d75b2
Absorb dependent zapx, scorch_segment_api, bleve_index_api commits
abhinavdangeti Sep 12, 2025
3dadd2d
Merge branch 'master' into IndexUpdate
abhinavdangeti Sep 12, 2025
96663d4
Fix missing refactor for PutUpdatedFields -> SetUpdatedFields
abhinavdangeti Sep 12, 2025
9891276
Use zapx/v16's v16.2.5
abhinavdangeti Sep 12, 2025
a4fbb0c
Fixing few test issues
Likith101 Sep 17, 2025
7fcbf77
Minor Changes
Likith101 Sep 19, 2025
4fab6ba
Addressing review comments
Likith101 Sep 30, 2025
0f10286
Merge branch 'master' into IndexUpdate
abhinavdangeti Sep 30, 2025
61c5adc
Addressing review comments
Likith101 Oct 8, 2025
c0f8c16
Addressing review comments
Likith101 Oct 8, 2025
29ff859
Adding commentary
Likith101 Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions index_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ func compareMappings(ori, upd *mapping.IndexMappingImpl) error {
}

if ori.ScoringModel != upd.ScoringModel {
if ori.ScoringModel != "" && ori.ScoringModel != "tf-idf" && ori.ScoringModel != "bm25" ||
upd.ScoringModel != "" && upd.ScoringModel != "tf-idf" && upd.ScoringModel != "bm25" {
return fmt.Errorf("scoring model can only be changed between \"\", tf-idf and bm25")
if ori.ScoringModel != "" && ori.ScoringModel != index.TFIDFScoring && ori.ScoringModel != index.BM25Scoring ||
upd.ScoringModel != "" && upd.ScoringModel != index.TFIDFScoring && upd.ScoringModel != index.BM25Scoring {
return fmt.Errorf("scoring model can only be changed between \"\", %q and %q", index.TFIDFScoring, index.BM25Scoring)
}
}

Expand Down