Pierre-Luc Perron created LUCENE-9267:
-----------------------------------------

             Summary: The documentation of getQueryBuildTime function reports a 
wrong time unit.
                 Key: LUCENE-9267
                 URL: https://issues.apache.org/jira/browse/LUCENE-9267
             Project: Lucene - Core
          Issue Type: Task
          Components: modules/other
    Affects Versions: 8.4, 8.3, 8.2
            Reporter: Pierre-Luc Perron


As per documentation, the 
[MatchingQueries|https://lucene.apache.org/core/8_4_1/monitor/org/apache/lucene/monitor/MatchingQueries.html]
 class returns both getQueryBuildTime and getSearchTime in milliseconds. The 
code shows 
[searchTime|https://github.com/apache/lucene-solr/blob/320578274be74a18ce150b604d28a740545fde48/lucene/monitor/src/java/org/apache/lucene/monitor/CandidateMatcher.java#L112]
 returning milliseconds. However, the code shows 
[buildTime|https://github.com/apache/lucene-solr/blob/320578274be74a18ce150b604d28a740545fde48/lucene/monitor/src/java/org/apache/lucene/monitor/QueryIndex.java#L280]
 returning nanoseconds.

The patch changes the documentation of getQueryBuildTime to report nanoseconds 
instead of milliseconds.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to