code: public SuggestIndexResponse index(final SuggestItem[] items) {
          // TODO parallel?
          final SuggestItem[] array = Stream.of(items).filter(item -> !item.isBadWord(badWords)).toArray(n -> new SuggestItem[n]);
  
          try {
              final long start = System.currentTimeMillis();
              final SuggestWriterResult result = suggestWriter.write(client, settings, index, array, true);
              return new SuggestIndexResponse(items.length, items.length, result.getFailures(), System.currentTimeMillis() - start);
          } catch (Exception e) {
              throw new SuggestIndexException("Failed to write items[" + items.length + "] to " + index, e);
          }
      }
docs: TODO return result