Skip to content

java.lang.IllegalStateException: FieldExistsQuery requires that the field indexes doc values, norms or vectors #129973

Open
@fang-xing-esql

Description

@fang-xing-esql

Elasticsearch Version

main

Installed Plugins

No response

Java Version

bundled

OS Version

serverless

Problem Description

org.elasticsearch.search.query.QueryPhaseExecutionException: Query Failed [Failed to execute main query]
at [email protected]/org.elasticsearch.search.query.QueryPhase.addCollectorsAndSearch(QueryPhase.java:237)
at [email protected]/org.elasticsearch.search.query.QueryPhase.executeQuery(QueryPhase.java:143)
at [email protected]/org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:70)
at [email protected]/org.elasticsearch.indices.IndicesService.lambda$loadIntoContext$39(IndicesService.java:1669)
at [email protected]/org.elasticsearch.indices.IndicesService.lambda$cacheShardLevelResult$40(IndicesService.java:1735)
at [email protected]/org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:165)
at [email protected]/org.elasticsearch.indices.IndicesRequestCache$Loader.load(IndicesRequestCache.java:148)
at [email protected]/org.elasticsearch.common.cache.Cache.computeIfAbsent(Cache.java:440)
at [email protected]/org.elasticsearch.indices.IndicesRequestCache.getOrCompute(IndicesRequestCache.java:111)
at [email protected]/org.elasticsearch.indices.IndicesService.cacheShardLevelResult(IndicesService.java:1741)
at [email protected]/org.elasticsearch.indices.IndicesService.loadIntoContext(IndicesService.java:1663)
at [email protected]/org.elasticsearch.search.SearchService.loadOrExecuteQueryPhase(SearchService.java:670)
at [email protected]/org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:877)
at [email protected]/org.elasticsearch.search.SearchService.lambda$executeQueryPhase$7(SearchService.java:710)
at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:79)
at [email protected]/org.elasticsearch.action.ActionRunnable$3.accept(ActionRunnable.java:76)
at [email protected]/org.elasticsearch.action.ActionRunnable$4.doRun(ActionRunnable.java:101)
at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
at [email protected]/org.elasticsearch.common.util.concurrent.TimedRunnable.doRun(TimedRunnable.java:35)
at [email protected]/org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:1044)
at [email protected]/org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:27)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1095)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
at java.base/java.lang.Thread.run(Thread.java:1447)
Caused by: java.lang.IllegalStateException: FieldExistsQuery requires that the field indexes doc values, norms or vectors, but field 'falco.output' exists and indexes neither of these data structures
at [email protected]/org.apache.lucene.search.FieldExistsQuery.rewrite(FieldExistsQuery.java:156)
at [email protected]/org.apache.lucene.search.ConstantScoreQuery.rewrite(ConstantScoreQuery.java:44)
at [email protected]/org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:311)
at [email protected]/org.apache.lucene.search.BooleanQuery.rewrite(BooleanQuery.java:316)
at [email protected]/org.apache.lucene.search.IndexSearcher.rewrite(IndexSearcher.java:876)
at [email protected]/org.elasticsearch.search.internal.ContextIndexSearcher.rewrite(ContextIndexSearcher.java:205)
at [email protected]/org.elasticsearch.search.internal.SearchContext.rewrittenQuery(SearchContext.java:296)
at [email protected]/org.elasticsearch.search.query.QueryPhase.addCollectorsAndSearch(QueryPhase.java:164)

Steps to Reproduce

Serverless alert - Found 50 data node errors of type: java.lang.IllegalStateException.

Logs (if relevant)

No response

Metadata

Metadata

Assignees

Labels

:Search Relevance/AnalysisHow text is split into tokens:Search/SearchSearch-related issues that do not fall into other categories>bugTeam:SearchMeta label for search teamTeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions