public static String getPhotoList(String date, String keyword)
  {
    DB db = _mongo.getDB(DATABASE_NAME);
    DBCollection coll = db.getCollection(COLLECTION_PHOTOSEARCH);
    
    BasicDBObject query = new BasicDBObject();
    
    if (date != null && !date.equals("")) {
      query.put("startDate", "" + getYear(date));
    }
    
    if (keyword != null && !keyword.equals("")) {
      query.put("title", java.util.regex.Pattern.compile("(?i)" + keyword));
    }
    
    DBCursor cur = coll.find(query);
    
    if (cur.hasNext()) {
      boolean isFirst = true;
      StringBuffer sb = new StringBuffer();
      sb.append("[");
      while (cur.hasNext()) {
        if (!isFirst) sb.append(", ");
        sb.append(cur.next().toString());
        isFirst = false;
      }
      sb.append("]");
      
      return sb.toString();
    }
    
    return "";
  }