From 5ad46d4a5c774f6f44a041af21e3556a0bb147f7 Mon Sep 17 00:00:00 2001 From: Harsha Vamsi Kalluri Date: Mon, 11 Mar 2024 11:37:02 -0700 Subject: [PATCH] Add some comments Signed-off-by: Harsha Vamsi Kalluri --- .../main/java/org/opensearch/index/mapper/DateFieldMapper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java b/server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java index 52df502a3f1b7..b7ee3bb8ca3e3 100644 --- a/server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java +++ b/server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java @@ -568,6 +568,7 @@ public Relation isFieldWithinQuery( DateMathParser dateParser, QueryRewriteContext context ) throws IOException { + // if we have only doc_values enabled we do not look at the BKD so we return an INTERSECTS by default if (isSearchable() == false && hasDocValues()) { return Relation.INTERSECTS; }