Package com.dotcms.repackage.org.apache.lucene.document

Examples of com.dotcms.repackage.org.apache.lucene.document.Field


  public static Field getDate(String field, Date date) {
    if (date == null) {
      return getDate(field);
    }
    else {
      return new Field (field, DateTools.dateToString( date, DateTools.Resolution.MILLISECOND ), Field.Store.YES, Field.Index.NOT_ANALYZED);
    }
  }
View Full Code Here


        _log.error(e.getMessage());
      }
    }

    if (text != null) {
      return new Field (field, text, Field.Store.YES, Field.Index.NOT_ANALYZED);
    }
    else {
      return new Field (field, reader);
    }
  }
View Full Code Here

  }

  public static Field getKeyword(String field, String keyword) {
    //keyword = KeywordsUtil.escape(keyword);

    Field fieldObj = new Field (field, keyword, Field.Store.YES, Field.Index.NOT_ANALYZED);

    fieldObj.setBoost(0);

    return fieldObj;
  }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.org.apache.lucene.document.Field

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.