Skip to content

reverts some last minute changes, ensures multiple searches work when… #457

reverts some last minute changes, ensures multiple searches work when…

reverts some last minute changes, ensures multiple searches work when… #457

GitHub Actions / Publish Tests failed Sep 26, 2024 in 1s

131 passed, 8 failed and 2 skipped

Tests failed

❌ tests.trx

141 tests were completed in 131s with 131 passed, 8 failed and 2 skipped.

Test suite Passed Failed Skipped Time
Examine.Test.Examine.Core.Options.ConfigureOptionsTests 1✅ 1s
Examine.Test.Examine.Lucene.Analyzers.PatternAnalyzerTests 2✅ 1s
Examine.Test.Examine.Lucene.Directories.SyncedFileSystemDirectoryFactoryTests 3✅ 1❌ 391ms
Examine.Test.Examine.Lucene.Extensions.SpatialSearch 2✅ 2s
Examine.Test.Examine.Lucene.Index.AnalyzerTests 1⚪ 2ms
Examine.Test.Examine.Lucene.Index.LuceneIndexTests 16✅ 3❌ 12s
Examine.Test.Examine.Lucene.Search.AnalyzerTests 2✅ 2s
Examine.Test.Examine.Lucene.Search.FluentApiTests 80✅ 4❌ 1⚪ 80s
Examine.Test.Examine.Lucene.Search.LuceneSearchResultsReaderTrackerTests 1✅ 1s
Examine.Test.Examine.Lucene.Search.MultiIndexSearch 2✅ 8s
Examine.Test.Examine.Lucene.Search.MultiIndexSearchTests 5✅ 14s
Examine.Test.Examine.Lucene.Search.StringTests 2✅ 2ms
Examine.Test.Examine.Lucene.Sync.ExamineReplicatorTests 4✅ 7s
Examine.Test.OrderedDictionaryTests 11✅ 9ms

✅ Examine.Test.Examine.Core.Options.ConfigureOptionsTests

✅ Can_Configure_Named_Options

✅ Examine.Test.Examine.Lucene.Analyzers.PatternAnalyzerTests

✅ Phone_Number
✅ Tokenizes

❌ Examine.Test.Examine.Lucene.Directories.SyncedFileSystemDirectoryFactoryTests

❌ Given_CorruptMainIndex_And_HealthyLocalIndex_When_CreatingDirectory_Then_LocalIndexSyncedToMain
	System.InvalidOperationException : Nullable object must have a value.
✅ Given_ExistingCorruptIndex_When_CreatingDirectory_Then_IndexCreatedOrOpened(False,False,OpenedSuccessfully)
✅ Given_ExistingCorruptIndex_When_CreatingDirectory_Then_IndexCreatedOrOpened(True,False,NotClean, Fixed, OpenedSuccessfully)
✅ Given_ExistingCorruptIndex_When_CreatingDirectory_Then_IndexCreatedOrOpened(True,True,MissingSegments, CorruptCreatedNew)

✅ Examine.Test.Examine.Lucene.Extensions.SpatialSearch

✅ Document_Writing_To_Index_Spatial_Data_And_Search_On_100km_Radius_GetPointVectorStrategy
✅ Document_Writing_To_Index_Spatial_Data_And_Search_On_100km_Radius_RecursivePrefixTreeStrategy

✅ Examine.Test.Examine.Lucene.Index.AnalyzerTests

⚪ Underscores

❌ Examine.Test.Examine.Lucene.Index.LuceneIndexTests

✅ Can_Add_Doc_With_Easy_Fields
✅ Can_Add_Doc_With_Fields
✅ Can_Add_Multiple_Docs
✅ Can_Add_One_Document
✅ Can_Add_Same_Document_Twice_Without_Duplication
✅ Can_Delete
✅ Can_Have_Multiple_Values_In_Fields
✅ Can_Manipulate_ValueSet_In_TransformingIndexValues_Event
❌ Can_Overwrite_Index_During_Indexing_Operation
	System.InvalidOperationException : Nullable object must have a value.
✅ Can_Update_Document
✅ Index_Ensure_No_Duplicates_In_Async
✅ Index_Exists
❌ Index_Read_And_Write_Ensure_No_Errors_In_Async(2000,5000,20,50,100,50,True)
	System.InvalidOperationException : Nullable object must have a value.
❌ Index_Read_And_Write_Ensure_No_Errors_In_Async(500,2000,20,50,100,50,False)
	System.InvalidOperationException : Nullable object must have a value.
✅ Index_Unlocks_When_Disposed
✅ Number_Field
✅ Operation_Complete_Executes_For_Multiple_Items
✅ Operation_Complete_Executes_For_Single_Item
✅ Rebuild_Index

✅ Examine.Test.Examine.Lucene.Search.AnalyzerTests

✅ Given_CultureInvariantStandardAnalyzer_When_SearchingBothCharVariants_Then_BothAreFound
✅ Given_CultureInvariantWhitespaceAnalyzer_When_SearchingBothCharVariants_Then_BothAreFound

❌ Examine.Test.Examine.Lucene.Search.FluentApiTests

✅ Allow_Leading_Wildcards
✅ And_Grouped_Not_Multi_Value
✅ And_Grouped_Not_Single_Value
✅ And_Not_Added_Later
✅ And_Not_Single_Field
✅ AndNot_Nested
✅ By_Id
✅ Category
✅ Complex_Or_Group_Nested_Query
❌ Custom_Lucene_Query_With_Native
	System.InvalidOperationException : Nullable object must have a value.
✅ Date_Range_SimpleIndexSet
✅ Double_Range_SimpleIndexSet
✅ Escaping_Includes_All_Words
✅ Examiness_Proximity
✅ Execute_With_Take
✅ Execute_With_Take_Max_Results
✅ Find_Both_Media_And_Content
✅ Find_By_NodeTypeAlias
✅ Find_By_ParentId
✅ Find_By_ParentId_Native_Query
✅ Find_Only_Image_Media
✅ Float_Range_SimpleIndexSet
✅ Fuzzy_Search
✅ Given_SkipTake_Returns_ExpectedTotals(0,1,1)
✅ Given_SkipTake_Returns_ExpectedTotals(0,100,5)
✅ Given_SkipTake_Returns_ExpectedTotals(0,2,2)
✅ Given_SkipTake_Returns_ExpectedTotals(0,3,3)
✅ Given_SkipTake_Returns_ExpectedTotals(0,4,4)
✅ Given_SkipTake_Returns_ExpectedTotals(0,5,5)
✅ Given_SkipTake_Returns_ExpectedTotals(1,1,1)
✅ Given_SkipTake_Returns_ExpectedTotals(1,2,2)
✅ Given_SkipTake_Returns_ExpectedTotals(1,3,3)
✅ Given_SkipTake_Returns_ExpectedTotals(1,4,4)
✅ Given_SkipTake_Returns_ExpectedTotals(1,5,4)
✅ Given_SkipTake_Returns_ExpectedTotals(2,2,2)
✅ Given_SkipTake_Returns_ExpectedTotals(2,5,3)
✅ Grouped_And_Examiness
❌ Grouped_And_Query_Output
	System.InvalidOperationException : Nullable object must have a value.
✅ Grouped_Not_Multi_Field_Single_Value
❌ Grouped_Not_Query_Output
	System.InvalidOperationException : Nullable object must have a value.
✅ Grouped_Not_Single_Field_Single_Value
✅ Grouped_Or_Examiness
❌ Grouped_Or_Query_Output
	System.InvalidOperationException : Nullable object must have a value.
✅ Grouped_Or_With_Not
✅ Inner_And_Query
✅ Inner_Not_Query
✅ Inner_Or_Query
✅ Legacy_ParentId
✅ Long_Range_SimpleIndexSet
✅ Managed_Full_Text
✅ Managed_Full_Text_With_Bool
✅ Managed_Range_Date
✅ Managed_Range_Int
✅ Match_By_Path
✅ Multiple_Searches
✅ NativeQuery_Phrase
✅ NativeQuery_Single_Word
✅ Not_Managed_Full_Text
✅ Not_Range
✅ Number_Range_SimpleIndexSet
✅ Paging_With_Skip_Take
⚪ Query_With_Category_Multi_Threaded
✅ Range_DateOnly
✅ Range_DateOnly_Min_And_Max_Inclusive
✅ Range_DateOnly_No_Inclusive
✅ Search_Native_Query
✅ Search_With_Stop_Words
✅ SearchAfter_NonSorted_Results_Returns_Different_Results
✅ SearchAfter_Sorted_Results_Returns_Different_Results
✅ Select_Field
✅ Select_Fields
✅ Select_Fields_HashSet
✅ Select_Fields_Native_Query
✅ Skip_Results_Returns_Different_Results
✅ Sort_Result_By_Date_Field
✅ Sort_Result_By_Double_Fields("double",Double)
✅ Sort_Result_By_Double_Fields("fulltext",Double)
✅ Sort_Result_By_Double_Fields("fulltext",String)
✅ Sort_Result_By_Double_Fields("fulltextsortable",Double)
✅ Sort_Result_By_Double_Fields("fulltextsortable",String)
✅ Sort_Result_By_Multiple_Fields
✅ Sort_Result_By_Number_Field
✅ Sort_Result_By_Single_Field
✅ Standard_Results_Sorted_By_Score
✅ Uppercase_Category

✅ Examine.Test.Examine.Lucene.Search.LuceneSearchResultsReaderTrackerTests

✅ Track_Readers

✅ Examine.Test.Examine.Lucene.Search.MultiIndexSearch

✅ MultiIndex_Field_Count
✅ MultiIndex_Simple_Search

✅ Examine.Test.Examine.Lucene.Search.MultiIndexSearchTests

✅ GivenCustomStopWords_WhenUsedOnlyForIndexingAndNotForSearching_TheDefaultWordsWillBeStrippedDuringSearchingWithNonManagedQueries
✅ GivenCustomStopWords_WhenUsedOnlyForIndexingAndNotForSearching_TheDefaultWordsWillNotBeStrippedDuringSearchingWithManagedQueries
✅ GivenCustomStopWords_WhenUsedOnlyForSearchingAndNotIndexing_TheDefaultWordsWillBeStrippedDuringIndexing
✅ MultiIndex_Field_Count
✅ MultiIndex_Simple_Search

✅ Examine.Test.Examine.Lucene.Search.StringTests

✅ Search_Remove_Stop_Words
✅ Search_Remove_Stop_Words_Uneven_Quotes

✅ Examine.Test.Examine.Lucene.Sync.ExamineReplicatorTests

✅ GivenAMainIndex_WhenReplicatedLocally_TheLocalIndexIsPopulated
✅ GivenAnOpenedWriter_WhenReplicationAttempted_ThenAnExceptionIsThrown
✅ GivenASyncedLocalIndex_ThenSyncedBackToMainIndexOnSchedule
✅ GivenASyncedLocalIndex_WhenTriggered_ThenSyncedBackToMainIndex

✅ Examine.Test.OrderedDictionaryTests

✅ TestAdd
✅ TestClear
✅ TestEnumerator
✅ TestInsertValue
✅ TestInvalidIndex
✅ TestMissingKey
✅ TestOrderIsPreserved
✅ TestRemove
✅ TestRemoveAt
✅ TestTryGetValue
✅ TestValueComparer

Annotations

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Directories.SyncedFileSystemDirectoryFactoryTests ► Given_CorruptMainIndex_And_HealthyLocalIndex_When_CreatingDirectory_Then_LocalIndexSyncedToMain

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Lucene.Providers.LuceneIndex.get_Searcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 124
   at Examine.Test.Examine.Lucene.Directories.SyncedFileSystemDirectoryFactoryTests.Given_CorruptMainIndex_And_HealthyLocalIndex_When_CreatingDirectory_Then_LocalIndexSyncedToMain() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Directories/SyncedFileSystemDirectoryFactoryTests.cs:line 113
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Index.LuceneIndexTests ► Can_Overwrite_Index_During_Indexing_Operation

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Lucene.Providers.LuceneIndex.get_Searcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 124
   at Examine.Test.Examine.Lucene.Index.LuceneIndexTests.Can_Overwrite_Index_During_Indexing_Operation() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Index/LuceneIndexTests.cs:line 495
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Index.LuceneIndexTests ► Index_Read_And_Write_Ensure_No_Errors_In_Async(2000,5000,20,50,100,50,True)

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Lucene.Providers.LuceneIndex.get_Searcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 124
   at Examine.Test.Examine.Lucene.Index.LuceneIndexTests.Index_Read_And_Write_Ensure_No_Errors_In_Async(Int32 indexCount, Int32 searchCount, Int32 indexThreadCount, Int32 searchThreadCount, Int32 indexThreadWait, Int32 searchThreadWait, Boolean inMemory) in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Index/LuceneIndexTests.cs:line 738
   at InvokeStub_LuceneIndexTests.Index_Read_And_Write_Ensure_No_Errors_In_Async(Object, Span`1)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Index.LuceneIndexTests ► Index_Read_And_Write_Ensure_No_Errors_In_Async(500,2000,20,50,100,50,False)

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Lucene.Providers.LuceneIndex.get_Searcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 124
   at Examine.Test.Examine.Lucene.Index.LuceneIndexTests.Index_Read_And_Write_Ensure_No_Errors_In_Async(Int32 indexCount, Int32 searchCount, Int32 indexThreadCount, Int32 searchThreadCount, Int32 indexThreadWait, Int32 searchThreadWait, Boolean inMemory) in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Index/LuceneIndexTests.cs:line 738
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithManyArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Search.FluentApiTests ► Custom_Lucene_Query_With_Native

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Lucene.Providers.LuceneIndex.get_Searcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 124
   at Examine.Test.Examine.Lucene.Search.FluentApiTests.Custom_Lucene_Query_With_Native() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Search/FluentApiTests.cs:line 2184
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Search.FluentApiTests ► Grouped_And_Query_Output

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Test.Examine.Lucene.Search.FluentApiTests.Grouped_And_Query_Output() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Search/FluentApiTests.cs:line 562
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Search.FluentApiTests ► Grouped_Not_Query_Output

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Test.Examine.Lucene.Search.FluentApiTests.Grouped_Not_Query_Output() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Search/FluentApiTests.cs:line 617
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1083 in src/Examine.Lucene/Providers/LuceneIndex.cs

See this annotation in the file changed.

@github-actions github-actions / Publish Tests

Examine.Test.Examine.Lucene.Search.FluentApiTests ► Grouped_Or_Query_Output

Failed test found in:
  tests.trx
Error:
  System.InvalidOperationException : Nullable object must have a value.
Raw output
System.InvalidOperationException : Nullable object must have a value.
   at System.Nullable`1.get_Value()
   at Examine.Lucene.Providers.LuceneIndex.CreateSearcher() in /home/runner/work/Examine/Examine/src/Examine.Lucene/Providers/LuceneIndex.cs:line 1083
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Examine.Test.Examine.Lucene.Search.FluentApiTests.Grouped_Or_Query_Output() in /home/runner/work/Examine/Examine/src/Examine.Test/Examine.Lucene/Search/FluentApiTests.cs:line 512
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)