From e73cf7dd5f21f51f250857fa71fc29eb3d1894f0 Mon Sep 17 00:00:00 2001 From: GabeFernandez310 Date: Wed, 2 Nov 2022 14:14:37 -0700 Subject: [PATCH] Corrected Text For Some Comments And Changed Constant To Be Private Signed-off-by: GabeFernandez310 --- .../storage/script/filter/lucene/relevance/NoFieldQuery.java | 2 +- .../storage/script/filter/lucene/relevance/QueryQuery.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/NoFieldQuery.java b/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/NoFieldQuery.java index 1214f9f12e..b27cd2e926 100644 --- a/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/NoFieldQuery.java +++ b/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/NoFieldQuery.java @@ -16,7 +16,7 @@ import org.opensearch.sql.expression.NamedArgumentExpression; /** - * Base class to represent relevance queries that search multiple fields. + * Base class to represent relevance queries that have no 'fields' array as an argument. * * @param The builder class for the OpenSearch query. */ diff --git a/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/QueryQuery.java b/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/QueryQuery.java index 6933f8fb5b..35d5a43a41 100644 --- a/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/QueryQuery.java +++ b/opensearch/src/main/java/org/opensearch/sql/opensearch/storage/script/filter/lucene/relevance/QueryQuery.java @@ -9,11 +9,11 @@ import org.opensearch.index.query.QueryStringQueryBuilder; /** - * Class for Lucene query that builds the query_string query. + * Class for Lucene query that builds the 'query' query. */ public class QueryQuery extends NoFieldQuery { - final String queryQueryName = "query"; + private final String queryQueryName = "query"; /** * Default constructor for QueryQuery configures how RelevanceQuery.build() handles