Package org.apache.lucene.search

Examples of org.apache.lucene.search.TermRangeQuery.includesUpper()


            field,
            (query.getLowerTerm() == null ? Long.MIN_VALUE : Long
                .parseLong(query.getLowerTerm())),
            (query.getUpperTerm() == null ? Long.MAX_VALUE : Long
                .parseLong(query.getUpperTerm())), query
                .includesLower(), query.includesUpper());
      case FLOAT:
        return NumericRangeQuery.newFloatRange(
            field,
            (query.getLowerTerm() == null ? Float.MIN_VALUE : Float
                .parseFloat(query.getLowerTerm())), (query
View Full Code Here


            field,
            (query.getLowerTerm() == null ? Float.MIN_VALUE : Float
                .parseFloat(query.getLowerTerm())), (query
                .getUpperTerm() == null ? Float.MAX_VALUE
                : Float.parseFloat(query.getUpperTerm())),
            query.includesLower(), query.includesUpper());
      case DOUBLE:
        return NumericRangeQuery.newDoubleRange(field,
            (query.getLowerTerm() == null ? Double.MIN_VALUE
                : Double.parseDouble(query.getLowerTerm())),
            (query.getUpperTerm() == null ? Double.MAX_VALUE
View Full Code Here

        return NumericRangeQuery.newDoubleRange(field,
            (query.getLowerTerm() == null ? Double.MIN_VALUE
                : Double.parseDouble(query.getLowerTerm())),
            (query.getUpperTerm() == null ? Double.MAX_VALUE
                : Double.parseDouble(query.getUpperTerm())),
            query.includesLower(), query.includesUpper());
      default:
        return query;
      }
    } catch (NullPointerException npe) {
      // An unknown field
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.