Created
June 24, 2015 13:08
-
-
Save kerin/c389776c85d950795926 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 14:02:49 rummager.1 | ERROR Elasticsearch::Client : BadRequest error from elasticsearch. Response: {"error":"SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][0]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][0]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][0]: SearchParseException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][0]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][0]: SearchParseException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][0]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][0]: SearchParseException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][0]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][1]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][1]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][1]: SearchParseException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][1]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][1]: SearchParseException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][1]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][1]: SearchParseException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][1]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][2]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][2]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][2]: SearchParseException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][2]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][2]: SearchParseException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][2]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][2]: SearchParseException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][2]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][3]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][3]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][3]: SearchParseException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][3]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][3]: SearchParseException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][3]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][3]: SearchParseException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][3]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][4]: SearchParseException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51][4]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[detailed-2015-06-15t16:52:20z-ca6c1243-623b-4e32-89a3-4c24c2912d51] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][4]: SearchParseException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555][4]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[government-2015-06-15t16:52:21z-e77bc92f-9faf-48d4-98ee-5e19ca53a555] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][4]: SearchParseException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1][4]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[mainstream-2015-06-15t16:52:19z-b7128d53-00fd-469b-bb68-de11972de6d1] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }{[1h_dYBGaTmG0vFxQ0L5W0g][service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][4]: SearchParseException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc][4]: from[0],size[1000]: Parse Failure [Failed to parse source [{\"from\":0,\"size\":1000,\"fields\":[\"title\",\"link\",\"description\",\"public_timestamp\",\"aircraft_category\",\"report_type\",\"date_of_occurrence\",\"aircraft_type\",\"location\",\"registration\"],\"query\":{\"indices\":{\"index\":\"government\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.4}},\"no_match_query\":{\"indices\":{\"index\":\"service-manual\",\"query\":{\"function_score\":{\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}},\"boost_factor\":0.1}},\"no_match_query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"function_score\":{\"boost_mode\":\"multiply\",\"query\":{\"bool\":{\"should\":[{\"bool\":{\"must\":[{\"match\":{\"_all\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\",\"minimum_should_match\":\"2<2 3<3 7<50%\"}}}],\"should\":[{\"match_phrase\":{\"title\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"acronym\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"description\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"match_phrase\":{\"indexable_content\":{\"query\":\"asd\",\"analyzer\":\"query_with_old_synonyms\"}}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"and\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"query_with_old_synonyms\"}},{\"multi_match\":{\"query\":\"asd\",\"operator\":\"or\",\"fields\":[\"title\",\"acronym\",\"description\",\"indexable_content\"],\"analyzer\":\"shingled_query_analyzer\"}}]}}]}},\"functions\":[{\"filter\":{\"term\":{\"format\":\"smart-answer\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"transaction\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"topical_event\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"minister\"}},\"boost_factor\":1.7},{\"filter\":{\"term\":{\"format\":\"organisation\"}},\"boost_factor\":2.5},{\"filter\":{\"term\":{\"format\":\"topic\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"document_series\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"document_collection\"}},\"boost_factor\":1.3},{\"filter\":{\"term\":{\"format\":\"operational_field\"}},\"boost_factor\":1.5},{\"filter\":{\"term\":{\"format\":\"contact\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"search_format_types\":\"announcement\"}},\"script_score\":{\"script\":\"((0.05 / ((3.16*pow(10,-11)) * abs(now - doc['public_timestamp'].date.getMillis()) + 0.05)) + 0.12)\",\"params\":{\"now\":1435150920000}}},{\"filter\":{\"term\":{\"organisation_state\":\"closed\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"organisation_state\":\"devolved\"}},\"boost_factor\":0.3},{\"filter\":{\"term\":{\"is_historic\":true}},\"boost_factor\":0.5}],\"score_mode\":\"multiply\"}},\"script_score\":{\"script\":\"doc['popularity'].value + 0.001\"}}}}}}},\"filter\":{\"terms\":{\"_type\":[\"aaib_report\"]}}}]]]; nested: QueryParsingException[[service-manual-2015-06-15t16:52:21z-6a10e7b3-e526-421c-a7e1-20e00e8222fc] script_score the script could not be loaded]; nested: ScriptException[dynamic scripting for [groovy] disabled]; }]","status":400} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment