Lucene++ - a full-featured, c++ search engine
API Documentation

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NumericRangeFilter.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2011 Alan Wright. All rights reserved.
3 // Distributable under the terms of either the Apache License (Version 2.0)
4 // or the GNU Lesser General Public License.
6
7 #ifndef NUMERICRANGEFILTER_H
8 #define NUMERICRANGEFILTER_H
9
10 #include "MultiTermQueryWrapperFilter.h"
11
12 namespace Lucene
13 {
24 class LPPAPI NumericRangeFilter : public MultiTermQueryWrapperFilter
25 {
26 public:
27 NumericRangeFilter(NumericRangeQueryPtr query);
28 virtual ~NumericRangeFilter();
29
30 LUCENE_CLASS(NumericRangeFilter);
31
32 public:
34 static NumericRangeFilterPtr newLongRange(const String& field, int32_t precisionStep, int64_t min, int64_t max, bool minInclusive, bool maxInclusive);
35
38 static NumericRangeFilterPtr newLongRange(const String& field, int64_t min, int64_t max, bool minInclusive, bool maxInclusive);
39
41 static NumericRangeFilterPtr newIntRange(const String& field, int32_t precisionStep, int32_t min, int32_t max, bool minInclusive, bool maxInclusive);
42
45 static NumericRangeFilterPtr newIntRange(const String& field, int32_t min, int32_t max, bool minInclusive, bool maxInclusive);
46
48 static NumericRangeFilterPtr newDoubleRange(const String& field, int32_t precisionStep, double min, double max, bool minInclusive, bool maxInclusive);
49
52 static NumericRangeFilterPtr newDoubleRange(const String& field, double min, double max, bool minInclusive, bool maxInclusive);
53
58 static NumericRangeFilterPtr newNumericRange(const String& field, int32_t precisionStep, NumericValue min, NumericValue max, bool minInclusive, bool maxInclusive);
59
64 static NumericRangeFilterPtr newNumericRange(const String& field, NumericValue min, NumericValue max, bool minInclusive, bool maxInclusive);
65
67 String getField();
68
70 bool includesMin();
71
73 bool includesMax();
74
76 NumericValue getMin();
77
79 NumericValue getMax();
80 };
81 }
82
83 #endif

clucene.sourceforge.net