Skip to content

Instantly share code, notes, and snippets.

@osamu
Created July 27, 2020 15:08
Show Gist options
  • Save osamu/e45d79942a81f86033d0ebf1c3b40cdc to your computer and use it in GitHub Desktop.
Save osamu/e45d79942a81f86033d0ebf1c3b40cdc to your computer and use it in GitHub Desktop.
```
[2020-07-27 23:34:59,205][DEBUG][action.search.type ] [Jimaine Szardos] [guides][0], node[X_IXa-xYQASSvENc_aJRrg], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@5556764e] lastShard [true]
org.elasticsearch.search.SearchParseException: [guides][0]: query[+status:published],from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"bool":{"must":[{"match":{"status":"published"}}]}},"sort":{"_geo_distance":{"location":{"lat":"31","lon":"120"},"order":"asc","unit":"meters"}}}]]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: org.elasticsearch.index.fielddata.plain.PagedBytesIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexGeoPointFieldData
at org.elasticsearch.search.sort.GeoDistanceSortParser.parse(GeoDistanceSortParser.java:141)
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:143)
at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:96)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)
... 9 more
````
```
[2020-07-27 23:37:03,755][INFO ][cluster.metadata ] [Jimaine Szardos] [guides] deleting index
[2020-07-27 23:37:03,953][DEBUG][action.admin.indices.create] [Jimaine Szardos] [guides] failed to create
org.elasticsearch.indices.IndexCreationException: [guides] failed to create index
at org.elasticsearch.indices.IndicesService.createIndex(IndicesService.java:338)
at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$2.execute(MetaDataCreateIndexService.java:371)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:374)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:204)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:167)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at org.apache.lucene.analysis.ja.dict.TokenInfoFST.<in
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment