Package org.elasticsearch.index.query

Examples of org.elasticsearch.index.query.RangeQueryBuilder.from()


    // Sentiment... only apply for entities (association sentiment is handled in parseAssociationTerm)
   
    if ((null != qt.sentiment) && (EntityPojo.docQuery_index_ == sFieldName)) { // (note: can use pointers here)
      RangeQueryBuilder sentimentQ = QueryBuilders.rangeQuery(EntityPojo.docQuery_sentiment_);
      if (null != qt.sentiment.min) {
        sentimentQ.from(qt.sentiment.min);
      }
      if (null != qt.sentiment.max) {
        sentimentQ.to(qt.sentiment.max);         
      }
      if (null == termQ) {
View Full Code Here


        sQueryTerm.append(" AND ");       
      }     
      bFirstTerm = false;
      RangeQueryBuilder sentimentQ = QueryBuilders.rangeQuery(AssociationPojo.docQuery_sentiment_);     
      if (null != sentiment.min) {
        sentimentQ.from(sentiment.min);
      }
      if (null != sentiment.max) {
        sentimentQ.to(sentiment.max);         
      }
      query.must(sentimentQ);
View Full Code Here

     * @return the range query builder
     */
    QueryBuilder getQueryBuilder() {
      RangeQueryBuilder rqb = new RangeQueryBuilder(field);
      if (startDate != null)
        rqb.from(startDate.getTime());
      if (endDate != null)
        rqb.to(endDate.getTime());
      return rqb;
    }

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.