Github user michaelarusso commented on a diff in the pull request:
https://github.com/apache/usergrid/pull/597#discussion_r219960557
--- Diff:
stack/core/src/main/java/org/apache/usergrid/corepersistence/pipeline/PipelineContext.java
---
@@ -43,16 +47,24 @@
// it can happen if ES was not updated or has yet to be updated.
private final boolean keepStaleEntries;
private String query;
+ private ParsedQuery parsedQuery;
public PipelineContext( final ApplicationScope applicationScope, final
RequestCursor requestCursor, final int limit, final int id, boolean
keepStaleEntries, String query ) {
this.applicationScope = applicationScope;
- this.requestCursor = requestCursor;
- this.limit = limit;
this.id = id;
this.keepStaleEntries = keepStaleEntries;
this.query = query;
+ this.parsedQuery = ParsedQueryBuilder.build(query);
+ if (parsedQuery != null && parsedQuery.isDirectQuery()) {
--- End diff --
I can tell the direct query is allowing the request to specify a bunch of
UUIDs to batch fetch it seems, or something of that nature. We should open a
JIRA with the details and link to this PR so that others can be aware of the
new feature.
---