Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns

Pierre-Luc Perron013e98347a01
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 31461ba2910..cd4b592b213 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -119,6 +119,9 @@ Other
* LUCENE-9344: Convert .txt files to properly formatted .md files. (Tomoko Uchida, Uwe Schindler)
+* LUCENE-9267: Update MatchingQueries documentation to correct
+ time unit. (Pierre-Luc Perron via Mike Drob)
+
======================= Lucene 8.6.0 =======================
API Changes
diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/MatchingQueries.java b/lucene/monitor/src/java/org/apache/lucene/monitor/MatchingQueries.java
index 2ae927da850..36cf0f19a4f 100644
--- a/lucene/monitor/src/java/org/apache/lucene/monitor/MatchingQueries.java
+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/MatchingQueries.java
@@ -67,7 +67,7 @@ public class MatchingQueries<T extends QueryMatch> {
}
/**
- * @return how long (in ms) it took to build the Presearcher query for the matcher run
+ * @return how long (in ns) it took to build the Presearcher query for the matcher run
*/
public long getQueryBuildTime() {
return queryBuildTime;
diff --git a/lucene/monitor/src/java/org/apache/lucene/monitor/MultiMatchingQueries.java b/lucene/monitor/src/java/org/apache/lucene/monitor/MultiMatchingQueries.java
index 79cb6b4d654..5c752c8686e 100644
--- a/lucene/monitor/src/java/org/apache/lucene/monitor/MultiMatchingQueries.java
+++ b/lucene/monitor/src/java/org/apache/lucene/monitor/MultiMatchingQueries.java
@@ -82,7 +82,7 @@ public class MultiMatchingQueries<T extends QueryMatch> {
}
/**
- * @return how long (in ms) it took to build the Presearcher query for the matcher run
+ * @return how long (in ns) it took to build the Presearcher query for the matcher run
*/
public long getQueryBuildTime() {
return queryBuildTime;