[SERVER-77954] Implement window function for $documentNumber Created: 09/Jun/23  Updated: 23/Jun/23  Resolved: 23/Jun/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Rui Liu Assignee: Projjal Chanda
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Participants:

 Comments   
Comment by Projjal Chanda [ 19/Jun/23 ]

$documentNumber can be implemented as simply

sum(fillEmpty(input), 1) 

or use the previous count stage used for document position

Comment by Rui Liu [ 13/Jun/23 ]

We should investigate whether this one can be implemented by $count.

Generated at Thu Feb 08 06:37:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.