我已经写了一段时间的iOS应用程序,并逐渐从完全以编程方式的UI到集中使用Interface Builder.我现在正在考虑为我的一些新项目使用新的故事板功能,但我没有足够的经验或知识来计算这样做的优点和缺点. 任何人都可以提供一些关于何时使用Storyboarding以及何时浪费时间的示例或信息?
我有嵌套文档聚合的问题ElasticSearch 5.6.3.
我的查询结构如下:
query
aggs
|_filter
|_nested
|_term
|_top-hits
Run Code Online (Sandbox Code Playgroud)
如果我在非嵌套字段上尝试聚合(并且当然删除了嵌套的agg),一切都按预期工作.但是现在结构化了,我收到了Lucene的例外情况:
Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucene.search.ConstantScoreScorer
ElasticSearch 不会触发此异常2.4.6.
我尝试以不同的方式构建聚合,但我无法想出一个可以工作并提供所需结果的组合.
这是映射的样子:
"recording": {
"dynamic": "strict",
"_all" : {
"enabled" : false
},
"properties": {
"id": {
"type": "integer"
},
"soloists": {
"properties": {
"type": "nested",
"person": {
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string", …Run Code Online (Sandbox Code Playgroud)