agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/MetadataSearch.java
/**
     * Parse String List to a Document with String key and value of 1
     *
     * @param filters List of String specifying fields to filter by
     * @return Document with the each String as the key with value of 1
     */
Parse String List to a Document with String key and value of 1
@param filters List of String specifying fields to filter by
@return Document with the each String as the key with value of 1
Parse String List to a Document with String key and value of 1 @param filters List of String specifying fields to filter by @return Document with the each String as the key with value of 1
public Document parseDocumentFromList(String[] filters) {
        Document docFilter = new Document();
        if (filters.length > 0) {
            for (String filter : filters) {
                docFilter.append(filter, 1);
            }
        }
        docFilter.append("_id", 0);
        return docFilter;
    }
public Document parseDocumentFromList ( String [ ] filters ) { Document docFilter = new Document ( ) ; if ( filters . length > 0 ) { for ( String filter : filters ) { docFilter . append ( filter , 1 ) ; } } docFilter . append ( "_id" , 0 ) ; return docFilter ; }
Parse String List to a Document with String key and value of 1
 @param filters List of String specifying fields to filter by
 @return Document with the each String as the key with value of 1
Parse String List to a Document with String key and value of 1 @param filters List of String specifying fields to filter by @return Document with the each String as the key with value of 1
//don't include mongo id