BlackLab icon indicating copy to clipboard operation
BlackLab copied to clipboard

Speed up [] grouped by a single annotation

Open jan-niestadt opened this issue 2 years ago • 0 comments

If a user tries to group the any token query [] by a single annotation, right now this is resolved using HitGroupsTokenFrequencies. This is faster than finding hits first, then grouping, but it could be done even faster by the method used by the /termfreq operation, which simply sums term frequencies from Lucene's reverse index. It would be nice if this path were automatically chosen in this case.

jan-niestadt avatar Nov 16 '22 14:11 jan-niestadt