dongle-the-gadget opened a new issue, #964:
URL: https://github.com/apache/lucenenet/issues/964
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
GroupingSearch might miss some groups, even if searching for docs using
`IndexSearcher.Search` indicates that the group should be present.
For instance, using `IndexSearcher.Search` will reveal a document with field
`name` and value `CreateFileW`, but using `GroupingSearch`, like below:
```cs
GroupingSearch groupingSearch = new("name");
groupingSearch.SetAllGroups(true);
```
contains no group with the `name` being `CreateFileW`.
In addition, the `TotalGroupCount` is inconsistent with that of the real
dataset.
### Expected Behavior
The group should exist in the search, and there should not be a mismatch
between `TotalGroupCount` and the index.
### Steps To Reproduce
A repro repository is here: https://github.com/dongle-the-gadget/TestLucene
The real dataset has documents of the following `name`s:
```
CreateFile2
CreateFile2FromAppW
CreateFileA
CreateFileFromAppW
CreateFileMappingA
CreateFileMappingFromApp
CreateFileMappingW
CreateFileMoniker
CreateFileW
CreateFile2
```
### Exceptions (if any)
_No response_
### Lucene.NET Version
4.8.0-beta00016
### .NET Version
8.0
### Operating System
Windows 11
### Anything else?
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]