code: private void addMVPName(Document doc, InternalQName name) throws RepositoryException
     {
        try
        {
           String propName = resolver.createJCRName(name).getAsString();
           doc.add(new Field(FieldNames.MVP, propName, Field.Store.NO, Field.Index.NOT_ANALYZED_NO_NORMS,
              Field.TermVector.NO));
        }
        catch (NamespaceException e)
        {
           // will never happen, prefixes are created dynamically
           if (LOG.isTraceEnabled())
           {
              LOG.trace("An exception occurred: " + e.getMessage());
           }
        }
     }
docs: Adds a {@link FieldNames#MVP} field to <code>doc</code> with the resolved
  <code>name</code> using the internal search index namespace mapping.
  
  @param doc  the lucene document.
  @param name the name of the multi-value property.
  @throws RepositoryException