0
votes

Is it possible to do grouping queries and aggregate results by using marklogic-client-api? For example, I have 3 indexes for an entity and want to group the results by them and know the 'count' for each triple.

Supposing it is possible to do something like, would it be possible to do the same using data data movement api?

I know there is cts:element-value-co-occurrences, but I don't think I can use it in marklogic-client-api.

1
Are you referring to the Java Client API, the Node Client API, or the REST Client API?Dave Cassel
I'm referring to java client api, more specifically to this: <dependency> <groupId>com.marklogic</groupId> <artifactId>marklogic-client-api</artifactId> <version>4.0.4</version> </dependency>brunovianarezende

1 Answers

1
votes

Take a look at the Optic API, which can be used from Java, Node.js, and REST as well as JavaScript and XQuery. With Optic, you can groupBy and calculate aggregates.