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 | 3 months ago
  1. 0

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

    GitHub | 3 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}]]
  2. 0

    Failed to parse query [_id:-fpYseLUSzKPOmv54Ju2iA]

    Google Groups | 4 years ago | cactus
    org.elasticsearch.search.SearchParseException: [graylog2_0][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"query_string":{"query":"_id:-fpYseLUSzKPOmv54Ju2iA"}},"size":10}]]
  3. 0

    Empty query_string generates SearchParseException

    GitHub | 3 years ago | sk-
    org.elasticsearch.search.SearchParseException: [test][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query" : {"query_string":{"query": ""}}}]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ParseException: Cannot parse '*field:foo': Encountered " ":" ": ""

    Google Groups | 2 years ago | Marko Uusitalo
    org.elasticsearch.search.SearchParseException: [logstash-2014.10.31][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"facets":{"2":{"date_histogram":{"field":"@time$
  6. 0

    Using Elastic4s to register a query with the percolator

    Stack Overflow | 11 months ago | Ryan Wilson
    org.elasticsearch.index.query.QueryParsingException: Failed to parse query [{"query":{"match":{"foo":"bar"}}}]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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