-
Notifications
You must be signed in to change notification settings - Fork 636
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
DYN-6038 Lucene search IMP #14428
DYN-6038 Lucene search IMP #14428
Conversation
Marking this ready just so PR checks could run |
@avidit Branch build available at storebox\DynamoCore\LuceneSearchIMP\px64\LuceneSearchIMP_3.0.0.6295 for testing |
@@ -114,7 +169,7 @@ internal void InitializeLuceneConfig(string dirName, LuceneStorage storageType = | |||
/// <returns></returns> | |||
internal Document InitializeIndexDocumentForNodes() | |||
{ | |||
if (DynamoModel.IsTestMode && currentStorageType == LuceneStorage.FILE_SYSTEM) return null; | |||
if (DynamoModel.IsTestMode && startConfig.StorageType == LuceneStorage.FILE_SYSTEM) return null; |
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.
should this log an error or something to the console?
src/DynamoCoreWpf/ViewModels/Search/NodeAutoCompleteSearchViewModel.cs
Outdated
Show resolved
Hide resolved
e12b271
to
c38e028
Compare
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.
Looks good to me.
@reddyashish Thanks for the review! Merging now |
* improvements * Simply initialization logic * Skip indexing as part of DynamoModel if the index files already exist * Remove DynamoModel reference and use singleton * clean up * improvements and package manager search * Use single constructor and other code clean up * Update... * Update * Dispose all Lucene objects in the correct order * Adding DynamoModel back to test regressions * Null check * Update * IndexWriter dispose sequence only for non-RAM mode
* DYN-6038 Lucene search IMP (#14428) * improvements * Simply initialization logic * Skip indexing as part of DynamoModel if the index files already exist * Remove DynamoModel reference and use singleton * clean up * improvements and package manager search * Use single constructor and other code clean up * Update... * Update * Dispose all Lucene objects in the correct order * Adding DynamoModel back to test regressions * Null check * Update * IndexWriter dispose sequence only for non-RAM mode * Update * Lucene index amend improvements (#14513) * Use index writer to amend index after Dynamo Launch * Update sorting * Update * Update * Update * Make sure package loading end will already release index lock * Update Comments * Clean Up * Code clean up * clean up * Code Clean Up * regressions * revert code clean up because it affects running tests in parallel * update * update * Update AssemblySharedInfo.cs
Purpose
Improvements to Lucene search, a legacy branch build available at storebox\DynamoCore\LuceneSearchIMP\px64\LuceneSearchIMP_3.0.0.6295
Here are the improvements included:
AddNodeTypeToSearchIndex
and add it to utility classSkip writing index files if they exist, read index files when available in the same caseDeclarations
Check these if you believe they are true
*.resx
filesRelease Notes
(FILL ME IN) Brief description of the fix / enhancement. Mandatory section
Reviewers
(FILL ME IN) Reviewer 1 (If possible, assign the Reviewer for the PR)
(FILL ME IN, optional) Any additional notes to reviewers or testers.
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of