Class org.qi4j.index.elasticsearch.ElasticSearchTest

1

tests

0

failures

0

ignored

0.385s

duration

100%

successful

Tests

Test Duration Result
test 0.385s passed

Standard output

INFO  o.q.i.e.ElasticSearchSupport - Will create 'qi4j_index' index as it does not exists.
INFO  o.q.i.e.ElasticSearchSupport - Index 'qi4j_index' created.
INFO  o.q.i.e.ElasticSearchSupport - Index/Query connected to Elastic Search
########################################
Post Identity: 46e277d8-0ce2-42d8-ae37-281815ea583e-3
Page Identity: 46e277d8-0ce2-42d8-ae37-281815ea583e-4
########################################
TRACE o.q.i.e.ElasticSearchIndexer - Creating Entity State in Index: 46e277d8-0ce2-42d8-ae37-281815ea583e-0({"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","application_version":"1.0","associations":{},"manyassociations":{},"properties":{"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","nickname":"eskatos"},"type":"org.qi4j.index.elasticsearch.ElasticSearchTest$Author","namedassociations":{},"modified":1438082023028,"version":"MemoryEntityStoreService-a972e273-e82d-40c7-996d-ea79a3059c310"})
TRACE o.q.i.e.ElasticSearchIndexer - Will index: {"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","nickname":"eskatos","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Author","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]}
TRACE o.q.i.e.ElasticSearchIndexer - Creating Entity State in Index: 46e277d8-0ce2-42d8-ae37-281815ea583e-1({"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1","application_version":"1.0","associations":{},"manyassociations":{},"properties":{"content":"Comment One","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1"},"type":"org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","namedassociations":{},"modified":1438082023028,"version":"MemoryEntityStoreService-a972e273-e82d-40c7-996d-ea79a3059c310"})
TRACE o.q.i.e.ElasticSearchIndexer - Will index: {"content":"Comment One","_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]}
TRACE o.q.i.e.ElasticSearchIndexer - Creating Entity State in Index: 46e277d8-0ce2-42d8-ae37-281815ea583e-2({"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2","application_version":"1.0","associations":{},"manyassociations":{},"properties":{"content":"Comment Two","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2"},"type":"org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","namedassociations":{},"modified":1438082023028,"version":"MemoryEntityStoreService-a972e273-e82d-40c7-996d-ea79a3059c310"})
TRACE o.q.i.e.ElasticSearchIndexer - Will index: {"content":"Comment Two","_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]}
TRACE o.q.i.e.ElasticSearchIndexer - Creating Entity State in Index: 46e277d8-0ce2-42d8-ae37-281815ea583e-3({"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-3","application_version":"1.0","associations":{"author":"46e277d8-0ce2-42d8-ae37-281815ea583e-0"},"manyassociations":{"comments":["46e277d8-0ce2-42d8-ae37-281815ea583e-2","46e277d8-0ce2-42d8-ae37-281815ea583e-1"]},"properties":{"body":"","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-3","title":"Foo Bar Bazar!","tagline":{"tags":""}},"type":"org.qi4j.index.elasticsearch.ElasticSearchTest$Post","namedassociations":{},"modified":1438082023028,"version":"MemoryEntityStoreService-a972e273-e82d-40c7-996d-ea79a3059c310"})
TRACE o.q.i.e.ElasticSearchIndexer - Will index: {"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-3","author":{"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","nickname":"eskatos","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Author","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]},"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-3","body":"","title":"Foo Bar Bazar!","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Post","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"],"comments":[{"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2","content":"Comment Two","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-2","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]},{"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1","content":"Comment One","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-1","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Comment","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]}],"tagline":{"tags":""}}
TRACE o.q.i.e.ElasticSearchIndexer - Creating Entity State in Index: 46e277d8-0ce2-42d8-ae37-281815ea583e-4({"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-4","application_version":"1.0","associations":{"author":"46e277d8-0ce2-42d8-ae37-281815ea583e-0"},"manyassociations":{},"properties":{"body":"","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-4","title":"Foo Bar Bazar!","tagline":{"tags":""}},"type":"org.qi4j.index.elasticsearch.ElasticSearchTest$Page","namedassociations":{},"modified":1438082023028,"version":"MemoryEntityStoreService-a972e273-e82d-40c7-996d-ea79a3059c310"})
TRACE o.q.i.e.ElasticSearchIndexer - Will index: {"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-4","author":{"_identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-0","nickname":"eskatos","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Author","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"]},"identity":"46e277d8-0ce2-42d8-ae37-281815ea583e-4","body":"","title":"Foo Bar Bazar!","_types":["org.qi4j.index.elasticsearch.ElasticSearchTest$Page","org.qi4j.api.entity.Identity","org.qi4j.api.entity.EntityComposite","org.qi4j.api.composite.Composite"],"tagline":{"tags":""}}
DEBUG o.q.i.e.ElasticSearchIndexer - Indexing changed Entity states took 10ms
DEBUG o.q.i.e.ElasticSearchFinder - Will count Entities: {
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          } ]
        }
      }
    }
  }
}
DEBUG o.q.i.e.ElasticSearchFinder - Will search Entity: {
  "size" : 1,
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification title=Foo Bar Bazar!
DEBUG o.q.i.e.ElasticSearchFinder - Will count Entities: {
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "term" : {
              "title" : "Foo Bar Bazar!"
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification title=Foo Bar Bazar!
DEBUG o.q.i.e.ElasticSearchFinder - Will search Entity: {
  "size" : 1,
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "term" : {
              "title" : "Foo Bar Bazar!"
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification title=Not available
DEBUG o.q.i.e.ElasticSearchFinder - Will count Entities: {
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "term" : {
              "title" : "Not available"
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification title!=Not available
DEBUG o.q.i.e.ElasticSearchFinder - Will count Entities: {
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "and" : {
              "filters" : [ {
                "exists" : {
                  "field" : "title"
                }
              }, {
                "not" : {
                  "filter" : {
                    "term" : {
                      "title" : "Not available"
                    }
                  }
                }
              } ]
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing NotSpecification !title=Not available
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification title=Not available
DEBUG o.q.i.e.ElasticSearchFinder - Will search Entity: {
  "size" : 1,
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "not" : {
              "filter" : {
                "and" : {
                  "filters" : [ {
                    "term" : {
                      "title" : "Not available"
                    }
                  } ]
                }
              }
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification author.nickname=eskatos
DEBUG o.q.i.e.ElasticSearchFinder - Will count Entities: {
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "term" : {
              "author.nickname" : "eskatos"
            }
          } ]
        }
      }
    }
  }
}
TRACE o.q.i.e.ElasticSearchFinder - Processing ComparisonSpecification author.nickname=eskatos
DEBUG o.q.i.e.ElasticSearchFinder - Will search Entity: {
  "size" : 1,
  "query" : {
    "filtered" : {
      "query" : {
        "match_all" : { }
      },
      "filter" : {
        "and" : {
          "filters" : [ {
            "term" : {
              "_types" : "org.qi4j.index.elasticsearch.ElasticSearchTest$Post"
            }
          }, {
            "term" : {
              "author.nickname" : "eskatos"
            }
          } ]
        }
      }
    }
  }
}