agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/JsonHandler.java
/**
     * Update corresponding {@link Document} value for {@code key} with parsed Regex value
     *
     * @param doc {@link Document} to update
     * @return {@link Document} with updated Regex value
     */
Update corresponding  Document value for  key with parsed Regex value
@param doc  Document to update
@return  Document with updated Regex value
Update corresponding Document value for key with parsed Regex value @param doc Document to update @return Document with updated Regex value
public Document parseRegexValueFromDocument(Document doc, String key) {
        if (((String) doc.get(key)).contains("*")) {
            Pattern regexPattern = Pattern.compile(doc.getString(key),
                    Pattern.LITERAL | Pattern.CASE_INSENSITIVE);
            doc.put(key, regexPattern);
        }
        return doc;
    }
public Document parseRegexValueFromDocument ( Document doc , String key ) { if ( ( ( String ) doc . get ( key ) ) . contains ( "*" ) ) { Pattern regexPattern = Pattern . compile ( doc . getString ( key ) , Pattern . LITERAL | Pattern . CASE_INSENSITIVE ) ; doc . put ( key , regexPattern ) ; } return doc ; }
Update corresponding {@link Document} value for {@code key} with parsed Regex value
 @param doc {@link Document} to update
 @return {@link Document} with updated Regex value
Update corresponding { @link Document } value for { @code key } with parsed Regex value @param doc { @link Document } to update @return { @link Document } with updated Regex value