org.elasticsearch.search.SearchParseException: [aleph][3]: from[0],size[-1]: Parse Failure [Failed to parse source [{"sort": ["_score"], "from": 0, "_source": ["collection_id", "title", "fi le_name", "extension", "languages", "countries", "source_url", "created_at", "updated_at", "type", "summary", "source_collection_id"], "aggregations": {"entities": {"aggs": {"inner": {"filt er": {"bool": {"must": [{"terms": {"entities.collection_id": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}}]}}, "aggs": {"entities": {"terms": {"field": "entities.id", "size": 50}}}}}, "nest ed": {"path": "entities"}}, "scoped": {"global": {}, "aggs": {"collections": {"filter": {"query": {"filtered": {"filter": {"bool": {"must": [{"terms": {"collection_id": [1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13]}}]}}, "query": {"bool": {"minimum_should_match": 1, "should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "default_opera tor": "AND", "fields": ["title^15", "file_name", "summary^10", "title_latin^12", "summary_latin^8"]}}, {"has_child": {"query": {"bool": {"should": [{"query_string": {"use_dis_max": true, "q uery": "(36/2005): Explanatory Memorandum on", "default_operator": "AND", "fields": ["text^6", "text_latin^2"]}}]}}, "type": "record"}}]}}}}}, "aggs": {"collections": {"terms": {"field": "c ollection_id", "size": 1000}}}}}}}, "query": {"filtered": {"filter": {"bool": {"must": [{"terms": {"collection_id": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}}]}}, "query": {"bool": {"min imum_should_match": 1, "should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "default_operator": "AND", "fields": ["title^15", "file_name", "sum mary^10", "title_latin^12", "summary_latin^8"]}}, {"has_child": {"query": {"bool": {"should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "defau lt_operator": "AND", "fields": ["text^6", "text_latin^2"]}}]}}, "type": "record"}}]}}}}, "size": 20}]]

GitHub | jbothma | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Searching for `(36/2005): Explanatory Memorandum on` results in elasticsearch and API error

    GitHub | 8 months ago | jbothma
    org.elasticsearch.search.SearchParseException: [aleph][3]: from[0],size[-1]: Parse Failure [Failed to parse source [{"sort": ["_score"], "from": 0, "_source": ["collection_id", "title", "fi le_name", "extension", "languages", "countries", "source_url", "created_at", "updated_at", "type", "summary", "source_collection_id"], "aggregations": {"entities": {"aggs": {"inner": {"filt er": {"bool": {"must": [{"terms": {"entities.collection_id": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}}]}}, "aggs": {"entities": {"terms": {"field": "entities.id", "size": 50}}}}}, "nest ed": {"path": "entities"}}, "scoped": {"global": {}, "aggs": {"collections": {"filter": {"query": {"filtered": {"filter": {"bool": {"must": [{"terms": {"collection_id": [1, 2, 3, 4, 5, 6, 7 , 8, 9, 10, 11, 12, 13]}}]}}, "query": {"bool": {"minimum_should_match": 1, "should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "default_opera tor": "AND", "fields": ["title^15", "file_name", "summary^10", "title_latin^12", "summary_latin^8"]}}, {"has_child": {"query": {"bool": {"should": [{"query_string": {"use_dis_max": true, "q uery": "(36/2005): Explanatory Memorandum on", "default_operator": "AND", "fields": ["text^6", "text_latin^2"]}}]}}, "type": "record"}}]}}}}}, "aggs": {"collections": {"terms": {"field": "c ollection_id", "size": 1000}}}}}}}, "query": {"filtered": {"filter": {"bool": {"must": [{"terms": {"collection_id": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]}}]}}, "query": {"bool": {"min imum_should_match": 1, "should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "default_operator": "AND", "fields": ["title^15", "file_name", "sum mary^10", "title_latin^12", "summary_latin^8"]}}, {"has_child": {"query": {"bool": {"should": [{"query_string": {"use_dis_max": true, "query": "(36/2005): Explanatory Memorandum on", "defau lt_operator": "AND", "fields": ["text^6", "text_latin^2"]}}]}}, "type": "record"}}]}}}}, "size": 20}]]

    Root Cause Analysis

    1. org.elasticsearch.index.query.QueryParsingException

      [aleph] Failed to parse query [(36/2005): Explanatory Memorandum on]

      at org.elasticsearch.index.query.QueryStringQueryParser.parse()
    2. ElasticSearch
      AggregatorParsers.parseAggregators
      1. org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:250)
      2. org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:307)
      3. org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:107)
      4. org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:307)
      5. org.elasticsearch.index.query.FilteredQueryParser.parse(FilteredQueryParser.java:71)
      6. org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:307)
      7. org.elasticsearch.index.query.QueryFilterParser.parse(QueryFilterParser.java:47)
      8. org.elasticsearch.index.query.QueryParseContext.executeFilterParser(QueryParseContext.java:373)
      9. org.elasticsearch.index.query.QueryParseContext.parseInnerFilter(QueryParseContext.java:354)
      10. org.elasticsearch.index.query.IndexQueryParserService.parseInnerFilter(IndexQueryParserService.java:295)
      11. org.elasticsearch.search.aggregations.bucket.filter.FilterParser.parse(FilterParser.java:42)
      12. org.elasticsearch.search.aggregations.AggregatorParsers.parseAggregators(AggregatorParsers.java:148)
      13. org.elasticsearch.search.aggregations.AggregatorParsers.parseAggregators(AggregatorParsers.java:138)
      13 frames