[
https://issues.apache.org/jira/browse/LUCENE-9267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre-Luc Perron updated LUCENE-9267:
--------------------------------------
Attachment: LUCENE-9267.patch
> 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.2, 8.3, 8.4
> Reporter: Pierre-Luc Perron
> Priority: Trivial
> Labels: documentation, newbie, pull-request-available
> Attachments: LUCENE-9267.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]