@Override
  public Collection<Document> toDocuments(LuceneIndex index, Object value) {
    String[] fields = index.getFieldNames();

    Document doc = new Document();
    for (String indexedFieldName : fields) {
      List<String> tokenizedFields = tokenizeField(indexedFieldName);
      addFieldValue(doc, indexedFieldName, value, tokenizedFields);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("FlatFormatSerializer.toDocuments: " + doc);
    }
    return Collections.singleton(doc);
  }
Recursively serialize each indexed field's value into a field of lucene document. The field
name will be in the same format as its indexed, such as contacts.homepage.content

@param index lucene index
@param value user object to be serialized into index
geode-lucene/src/main/java/org/apache/geode/cache/lucene/FlatFormatSerializer.java