A ConstantScore query will return the iterator of its inner query. However, when profiling, the constant score query is wrapped separately from its inner query, which distorts the times emitted by the profiler.
This could be fixed by not wrapping the iterator if it is already a profiling implementation.
A ConstantScore query will return the iterator of its inner query. However, when profiling, the constant score query is wrapped separately from its inner query, which distorts the times emitted by the profiler.
This could be fixed by not wrapping the iterator if it is already a profiling implementation.