code: public Term term(DecoratedKey partitionKey) {
          String serializedKey = ByteBufferUtils.toString(partitionKey.getKey());
          return new Term(FIELD_NAME, serializedKey);
      }
docs: Returns the specified raw partition key as a Lucene {@link Term}.
  
  @param partitionKey The raw partition key to be converted.
  @return The specified raw partition key as a Lucene {@link Term}.