You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by "Thomas Draier (JIRA)" <ji...@apache.org> on 2016/02/03 17:51:40 UTC

[jira] [Created] (UNOMI-16) Query crashes when no item created

Thomas Draier created UNOMI-16:
----------------------------------

             Summary: Query crashes when no item created
                 Key: UNOMI-16
                 URL: https://issues.apache.org/jira/browse/UNOMI-16
             Project: Apache Unomi
          Issue Type: Bug
          Components: core
    Affects Versions: 1.0.0-incubating
            Reporter: Thomas Draier


If no item of a specific type is created (campaign, for example), no mapping is available for its properties. This leads to errors when trying to do a query on these properties. Mappings should be initialized for known properties.

org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to execute phase [query], all shards failed; shardFailures {[T9zAqpxCRpqridp471WgBg][context][0]: SearchParseException[[context][0]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"metadata.scope":"acmespace"}},{"term":{"campaignId":"_xcpd1t9ww"}}]}}}},"_source":{"includes":[],"excludes":[]},"sort":[{"eventDate":{"order":"desc"}}]}]]]; nested: SearchParseException[[context][0]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [No mapping found for [eventDate] in order to sort on]]; }{[T9zAqpxCRpqridp471WgBg][context][1]: SearchParseException[[context][1]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"metadata.scope":"acmespace"}},{"term":{"campaignId":"_xcpd1t9ww"}}]}}}},"_source":{"includes":[],"excludes":[]},"sort":[{"eventDate":{"order":"desc"}}]}]]]; nested: SearchParseException[[context][1]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [No mapping found for [eventDate] in order to sort on]]; }{[T9zAqpxCRpqridp471WgBg][context][2]: SearchParseException[[context][2]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"metadata.scope":"acmespace"}},{"term":{"campaignId":"_xcpd1t9ww"}}]}}}},"_source":{"includes":[],"excludes":[]},"sort":[{"eventDate":{"order":"desc"}}]}]]]; nested: SearchParseException[[context][2]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [No mapping found for [eventDate] in order to sort on]]; }{[T9zAqpxCRpqridp471WgBg][context][3]: SearchParseException[[context][3]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"metadata.scope":"acmespace"}},{"term":{"campaignId":"_xcpd1t9ww"}}]}}}},"_source":{"includes":[],"excludes":[]},"sort":[{"eventDate":{"order":"desc"}}]}]]]; nested: SearchParseException[[context][3]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [No mapping found for [eventDate] in order to sort on]]; }{[T9zAqpxCRpqridp471WgBg][context][4]: SearchParseException[[context][4]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [Failed to parse source [{"from":0,"size":10,"query":{"filtered":{"query":{"match_all":{}},"filter":{"and":{"filters":[{"term":{"metadata.scope":"acmespace"}},{"term":{"campaignId":"_xcpd1t9ww"}}]}}}},"_source":{"includes":[],"excludes":[]},"sort":[{"eventDate":{"order":"desc"}}]}]]]; nested: SearchParseException[[context][4]: query[ConstantScore(+cache(metadata.scope:acmespace) +cache(campaignId:_xcpd1t9ww))],from[0],size[10]: Parse Failure [No mapping found for [eventDate] in order to sort on]]; }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)