Skip to content

Fix #2274: update NewMemOnly to use DefaultIndexType; added regression test for change#2355

Open
Vishhh03 wants to merge 1 commit into
blevesearch:masterfrom
Vishhh03:fix-newmemonly-upsidedown
Open

Fix #2274: update NewMemOnly to use DefaultIndexType; added regression test for change#2355
Vishhh03 wants to merge 1 commit into
blevesearch:masterfrom
Vishhh03:fix-newmemonly-upsidedown

Conversation

@Vishhh03

Copy link
Copy Markdown

Fixes 2274

Description:

bleve.NewMemOnly() was using the older upside_down index format, which does not support features like Synonym Search. I updated it to use Config.DefaultIndexType instead so it defaults to scorch and supports in-memory usage.

Testing Performed:

As requested in the issue thread, I wanted to make sure switching NewMemOnly to use scorch wouldn't break anything.

  1. Ran go test ./... across the entire workspace. All tests passed successfully.
  2. Verified that the TestSynonymInMem test cases now successfully pass with the new in-memory scorch index behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant