You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by md...@apache.org on 2020/04/24 15:37:45 UTC

[lucene-solr] branch master updated: LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns

This is an automated email from the ASF dual-hosted git repository.

mdrob pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new 013e983  LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns
013e983 is described below

commit 013e98347a011664bff18f72d7c24eb97b1201d9
Author: Pierre-Luc Perron <pl...@protonmail.com>
AuthorDate: Sat Mar 7 12:42:07 2020 -0500

    LUCENE-9267 Replace getQueryBuildTime time unit from ms to ns
---
 lucene/CHANGES.txt                                                     | 3 +++
 lucene/monitor/src/java/org/apache/lucene/monitor/MatchingQueries.java | 2 +-
 .../src/java/org/apache/lucene/monitor/MultiMatchingQueries.java       | 2 +-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 31461ba..cd4b592 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 2ae927d..36cf0f1 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 79cb6b4..5c752c8 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;