Then how to handle of large amount of data with aggregation…?
I’m not sure I understand what you mean. Are you asking on how to aggregate your data so that you don’t need to fetch millions of documents from the server?
If that is the question, it’s probably best to open a new thread with more details (what you need, example documents, example output, what you have attempted, etc.). I think it’s best to keep one question per thread so it’s not confusing to read, since this thread is all about query indexing.
Best regards,
Kevin