From 0fcc12246d203f86272c7a4d1959ec91cd7fb945 Mon Sep 17 00:00:00 2001 From: Patrick Tang <36460266+patricksptang@users.noreply.github.com> Date: Mon, 24 Jun 2024 23:28:50 -0700 Subject: [PATCH] Remove timeTookTotal to browser. It is not used --- .../step/core/service/search/impl/SearchServiceImpl.java | 4 ++-- .../core/service/search/impl/SubjectSearchServiceImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SearchServiceImpl.java b/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SearchServiceImpl.java index 6c4fbee3d8..c15d26d4de 100644 --- a/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SearchServiceImpl.java +++ b/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SearchServiceImpl.java @@ -543,7 +543,7 @@ public SearchResult search(final SearchQuery sq, final String options, final Str * @return the search result */ private SearchResult doSearch(final SearchQuery sq, final String options, final String srchJoin) { - final long start = System.currentTimeMillis(); +// final long start = System.currentTimeMillis(); SearchResult result; // if we've only got one search, we want to retrieve the keys, the page, etc. all in one go @@ -568,7 +568,7 @@ private SearchResult doSearch(final SearchQuery sq, final String options, final result.setSearchType(getBestSearchType(sq)); result.setPageSize(sq.getPageSize()); result.setPageNumber(sq.getPageNumber()); - result.setTimeTookTotal(System.currentTimeMillis() - start); +// result.setTimeTookTotal(System.currentTimeMillis() - start); result.setQuery(sq.getOriginalQuery()); setBestRestriction(sq, result); final String[] allVersions = sq.getCurrentSearch().getVersions(); diff --git a/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SubjectSearchServiceImpl.java b/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SubjectSearchServiceImpl.java index c1c4216854..294655eaec 100644 --- a/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SubjectSearchServiceImpl.java +++ b/step-core/src/main/java/com/tyndalehouse/step/core/service/search/impl/SubjectSearchServiceImpl.java @@ -441,7 +441,7 @@ public int compare(final SearchEntry o1, final SearchEntry o2) { }); final SearchResult sr = new SearchResult(); - sr.setTimeTookTotal(System.currentTimeMillis() - start); +// sr.setTimeTookTotal(System.currentTimeMillis() - start); sr.setTimeTookToRetrieveScripture(0); sr.setResults(headingMatches); sr.setTotal(headingMatches.size());