Skip to content

Instantly share code, notes, and snippets.

@vaughnd
Last active December 22, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaughnd/228885aec3b69d8107aa1c6a4dfdc62e to your computer and use it in GitHub Desktop.
Save vaughnd/228885aec3b69d8107aa1c6a4dfdc62e to your computer and use it in GitHub Desktop.
java.lang.RuntimeException: failed to check serialization - version [5.2.0] for streamable [SearchRequest{searchType=QUERY_THEN_FETCH, indices=[wizenoze_custom_nl], indicesOptions=IndicesOptions[id=38, ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_alisases_to_multiple_indices=true, forbid_closed_indices=true], types=[collection], routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=81, batchedReduceSize=9, preFilterShardSize=128, source={
"from" : 0,
"size" : 10,
"query" : {
"has_child" : {
"query" : {
"bool" : {
"must" : [
{
"function_score" : {
"query" : {
"function_score" : {
"query" : {
"bool" : {
"must" : [
{
"dis_max" : {
"tie_breaker" : 0.0,
"queries" : [
{
"common" : {
"bodyText" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"analyzer" : "contentNoQuestionTerms",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 2.0
}
}
},
{
"common" : {
"bodyText.stemmed" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"analyzer" : "stemmedNoQuestionTerms",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 1.0
}
}
},
{
"common" : {
"title" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"analyzer" : "contentNoQuestionTerms",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 2.0
}
}
},
{
"common" : {
"title.stemmed" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"analyzer" : "stemmedNoQuestionTerms",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 2.0
}
}
}
],
"boost" : 1.0
}
}
],
"should" : [
{
"common" : {
"bodyText" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 2.0
}
}
},
{
"match_phrase" : {
"bodyText" : {
"query" : "amsterdam",
"slop" : 0,
"boost" : 3.0
}
}
},
{
"match_phrase" : {
"title" : {
"query" : "amsterdam",
"slop" : 0,
"boost" : 3.0
}
}
},
{
"common" : {
"title" : {
"query" : "amsterdam",
"disable_coord" : true,
"high_freq_operator" : "OR",
"low_freq_operator" : "OR",
"cutoff_frequency" : 0.5,
"minimum_should_match" : {
"high_freq" : "60%"
},
"boost" : 2.0
}
}
},
{
"term" : {
"title.one_token" : {
"value" : "amsterdam",
"boost" : 4.0
}
}
},
{
"multi_match" : {
"query" : "amsterdam",
"fields" : [
"bodyText.stemmed^1.0",
"title.stemmed^1.0"
],
"type" : "best_fields",
"operator" : "OR",
"analyzer" : "stemmedNoQuestionTerms",
"slop" : 0,
"prefix_length" : 0,
"max_expansions" : 50,
"lenient" : false,
"cutoff_frequency" : 0.5,
"zero_terms_query" : "NONE",
"boost" : 0.0,
"_name" : "amsterdam"
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"functions" : [ ],
"score_mode" : "multiply",
"max_boost" : 3.4028235E38,
"boost" : 1.0
}
},
"functions" : [
{
"filter" : {
"bool" : {
"must" : [
{
"term" : {
"documentTypes" : {
"value" : "news",
"boost" : 1.0
}
}
},
{
"range" : {
"publicationDate" : {
"from" : "2017-12-08",
"to" : null,
"include_lower" : false,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"exp" : {
"publicationDate" : {
"origin" : "2017-12-22",
"scale" : "14d",
"decay" : 0.5
},
"multi_value_mode" : "MIN"
}
},
{
"filter" : {
"bool" : {
"must" : [
{
"range" : {
"publicationDate" : {
"from" : "2017-12-08",
"to" : null,
"include_lower" : false,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"must_not" : [
{
"term" : {
"documentTypes" : {
"value" : "news",
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"exp" : {
"publicationDate" : {
"origin" : "2017-12-22",
"scale" : "14d",
"decay" : 0.5
},
"multi_value_mode" : "MIN"
}
},
{
"filter" : {
"bool" : {
"must" : [
{
"term" : {
"documentTypes" : {
"value" : "news",
"boost" : 1.0
}
}
},
{
"range" : {
"publicationDate" : {
"from" : null,
"to" : "2017-12-08",
"include_lower" : false,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"weight" : 0.5,
"exp" : {
"publicationDate" : {
"origin" : "2017-12-08",
"scale" : "56d",
"decay" : 0.5
},
"multi_value_mode" : "MIN"
}
},
{
"filter" : {
"bool" : {
"must" : [
{
"range" : {
"publicationDate" : {
"from" : null,
"to" : "2017-12-08",
"include_lower" : false,
"include_upper" : true,
"boost" : 1.0
}
}
}
],
"must_not" : [
{
"term" : {
"documentTypes" : {
"value" : "news",
"boost" : 1.0
}
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"weight" : 0.5
},
{
"filter" : {
"bool" : {
"must_not" : [
{
"exists" : {
"field" : "publicationDate",
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"weight" : 0.5
}
],
"score_mode" : "multiply",
"boost_mode" : "multiply",
"max_boost" : 3.4028235E38,
"boost" : 1.0
}
},
{
"bool" : {
"must" : [
{
"terms" : {
"collectionIds" : [
2
],
"boost" : 1.0
}
},
{
"bool" : {
"should" : [
{
"terms" : {
"documentTypes" : [
"unknown"
],
"boost" : 1.0
}
},
{
"bool" : {
"must_not" : [
{
"exists" : {
"field" : "documentTypes",
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
}
],
"disable_coord" : false,
"adjust_pure_negative" : true,
"boost" : 1.0
}
},
"type" : "page",
"score_mode" : "max",
"min_children" : 0,
"max_children" : 2147483647,
"ignore_unmapped" : false,
"boost" : 1.0,
"inner_hits" : {
"name" : "page",
"ignore_unmapped" : false,
"from" : 0,
"size" : 3,
"version" : false,
"explain" : false,
"track_scores" : false,
"highlight" : {
"pre_tags" : [
"<span class=\"query-result__snippet-word--highlighted\">"
],
"post_tags" : [
"</span>"
],
"fragment_size" : 200,
"number_of_fragments" : 2,
"type" : "postings",
"require_field_match" : true,
"no_match_size" : 200,
"encoder" : "html",
"fields" : {
"bodyText" : { },
"bodyText.stemmed" : { }
}
}
}
}
},
"highlight" : {
"pre_tags" : [
"<span class=\"query-result__snippet-word--highlighted\">"
],
"post_tags" : [
"</span>"
],
"fragment_size" : 200,
"number_of_fragments" : 2,
"type" : "postings",
"require_field_match" : true,
"no_match_size" : 200,
"encoder" : "html",
"fields" : {
"bodyText" : { },
"bodyText.stemmed" : { }
}
}
}}]
at __randomizedtesting.SeedInfo.seed([ED57A91C3C4D916C:7D641B26700513F1]:0)
at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertVersionSerializable(ElasticsearchAssertions.java:691)
at org.elasticsearch.test.transport.AssertingLocalTransport.sendRequest(AssertingLocalTransport.java:106)
at org.elasticsearch.transport.local.LocalTransport$1.sendRequest(LocalTransport.java:242)
at org.elasticsearch.transport.TransportService.sendRequestInternal(TransportService.java:596)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:529)
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:517)
at org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:51)
at org.elasticsearch.client.transport.TransportProxyClient.lambda$execute$0(TransportProxyClient.java:59)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:250)
at org.elasticsearch.client.transport.TransportProxyClient.execute(TransportProxyClient.java:59)
at org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:366)
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)
at org.elasticsearch.action.ActionRequestBuilder$execute.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:114)
at nl.wizenoze.search.engine.ElasticsearchEngine.doSearch(ElasticsearchEngine.groovy:660)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:207)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
at nl.wizenoze.search.engine.ElasticsearchEngine.search(ElasticsearchEngine.groovy:373)
at nl.wizenoze.search.engine.SearchEngine$search$1.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:138)
at nl.wizenoze.cse.engine.WizenozeESIntegTestCase.testRanking(WizenozeESIntegTestCase.groovy:137)
at nl.wizenoze.cse.engine.WizenozeESIntegTestCase.testRanking(WizenozeESIntegTestCase.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1461)
at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.callStatic(StaticMetaClassSite.java:62)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:191)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:227)
at nl.wizenoze.cse.rankingtests.GroupBySourceTest.testAmsterdamGroupSources(GroupBySourceTest.groovy:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1713)
at com.carrotsearch.randomizedtesting.RandomizedRunner$8.evaluate(RandomizedRunner.java:907)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:943)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:957)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)
at com.carrotsearch.randomizedtesting.RandomizedRunner.runSingleTest(RandomizedRunner.java:916)
at com.carrotsearch.randomizedtesting.RandomizedRunner$5.evaluate(RandomizedRunner.java:802)
at com.carrotsearch.randomizedtesting.RandomizedRunner$6.evaluate(RandomizedRunner.java:852)
at com.carrotsearch.randomizedtesting.RandomizedRunner$7.evaluate(RandomizedRunner.java:863)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleStoreClassName$1.evaluate(TestRuleStoreClassName.java:41)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.NoShadowingOrOverridesOnMethodsRule$1.evaluate(NoShadowingOrOverridesOnMethodsRule.java:40)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleAssertionsRequired$1.evaluate(TestRuleAssertionsRequired.java:53)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleIgnoreTestSuites$1.evaluate(TestRuleIgnoreTestSuites.java:54)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Unknown NamedWriteable [org.elasticsearch.index.query.QueryBuilder][has_child]
at org.elasticsearch.common.io.stream.NamedWriteableRegistry.getReader(NamedWriteableRegistry.java:112)
at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:45)
at org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput.readNamedWriteable(NamedWriteableAwareStreamInput.java:39)
at org.elasticsearch.common.io.stream.StreamInput.readOptionalNamedWriteable(StreamInput.java:852)
at org.elasticsearch.search.builder.SearchSourceBuilder.<init>(SearchSourceBuilder.java:197)
at org.elasticsearch.common.io.stream.StreamInput.readOptionalWriteable(StreamInput.java:711)
at org.elasticsearch.action.search.SearchRequest.readFrom(SearchRequest.java:397)
at org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertVersionSerializable(ElasticsearchAssertions.java:677)
... 82 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment