[
https://issues.apache.org/jira/browse/USERGRID-1349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626848#comment-16626848
]
ASF GitHub Bot commented on USERGRID-1349:
------------------------------------------
Github user keyurkarnik commented on a diff in the pull request:
https://github.com/apache/usergrid/pull/597#discussion_r220072009
--- 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 --
https://issues.apache.org/jira/browse/USERGRID-1349
> Feature for querying directly from C* instead of ES when using UUID or name
> ---------------------------------------------------------------------------
>
> Key: USERGRID-1349
> URL: https://issues.apache.org/jira/browse/USERGRID-1349
> Project: Usergrid
> Issue Type: Improvement
> Components: Stack
> Affects Versions: 2.2.0
> Reporter: Keyur Karnik
> Priority: Major
> Fix For: 2.2.0
>
>
> Add a feature so that Usergrid does not have to query Elasticsearch if the
> query contains only (one or more) UUIDs or names.
> This kind of query can be termed as a 'direct' query where a new operator
> 'direct' can be introduced. Any queries with 'direct' will be fired only on
> C* and not ES as all required details are present in C*
>
> Example :
> 0:8080/org/app/collection?ql = select * where *direct* name1, uuid1, uuid2,
> name2
> This should result in a C* only fetch.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)