Skip to content

Commit

Permalink
fix #2807 Add record_count to /api/v1/popular-words API response
Browse files Browse the repository at this point in the history
  • Loading branch information
marevol committed Feb 22, 2024
1 parent 76352cf commit 1409cc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ protected void processPopularWordRequest(final HttpServletRequest request, final
try {
final List<String> popularWordList =
popularWordHelper.getWordList(SearchRequestType.JSON, seed, tags, null, fields, StringUtil.EMPTY_STRINGS);

buf.append("\"record_count\":").append(popularWordList.size()).append(',');
buf.append("\"data\":[");
boolean first1 = true;
for (final String word : popularWordList) {
Expand Down

0 comments on commit 1409cc1

Please sign in to comment.