|
@@ -315,7 +315,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
map.put("size", pageParams.getSize());
|
|
map.put("size", pageParams.getSize());
|
|
|
map.put("total", hits.totalHits);
|
|
map.put("total", hits.totalHits);
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|
|
@@ -357,7 +357,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|
|
@@ -423,7 +423,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|
|
@@ -519,7 +519,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
components.add(map);
|
|
components.add(map);
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|
|
@@ -659,7 +659,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|
|
@@ -772,7 +772,7 @@ public class SearchServiceImpl implements SearchService, InnerSearchService {
|
|
|
result.add(document.get(field));
|
|
result.add(document.get(field));
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
|
|
|
|
+ logger.error("", e);
|
|
|
} finally {
|
|
} finally {
|
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
SearchUtils.releaseIndexSearcher(indexSearcher);
|
|
|
}
|
|
}
|