Package org.apache.lucene.search

Examples of org.apache.lucene.search.DateFilter


      multiFilter.add(new FieldFilter("forumID", forumID));

      //Date filter
      if (beforeDate != null || afterDate != null) {
        if (beforeDate != null && afterDate != null) {
          multiFilter.add(new DateFilter("creationDate", beforeDate, afterDate));
        } else if (beforeDate == null) {
          multiFilter.add(DateFilter.After("creationDate", afterDate));
        } else {
          multiFilter.add(DateFilter.Before("creationDate", beforeDate));
        }
View Full Code Here

TOP

Related Classes of org.apache.lucene.search.DateFilter

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.