Searched refs:min (Results 1 - 25 of 148) sorted by relevance

123456

/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/
H A DLengthFilter.java32 private final int min; field in class:LengthFilter
41 public LengthFilter(boolean enablePositionIncrements, TokenStream in, int min, int max) { argument
43 this.min = min;
53 public LengthFilter(TokenStream in, int min, int max) { argument
54 this(false, in, min, max);
60 return (len >= min && len <= max);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DNumericRangeFilter.java54 * by setting the min or max value to <code>null</code>. By setting inclusive to false, it will
58 Long min, Long max, final boolean minInclusive, final boolean maxInclusive
61 NumericRangeQuery.newLongRange(field, precisionStep, min, max, minInclusive, maxInclusive)
69 * by setting the min or max value to <code>null</code>. By setting inclusive to false, it will
73 Long min, Long max, final boolean minInclusive, final boolean maxInclusive
76 NumericRangeQuery.newLongRange(field, min, max, minInclusive, maxInclusive)
84 * by setting the min or max value to <code>null</code>. By setting inclusive to false, it will
88 Integer min, Integer max, final boolean minInclusive, final boolean maxInclusive
91 NumericRangeQuery.newIntRange(field, precisionStep, min, max, minInclusive, maxInclusive)
99 * by setting the min o
57 newLongRange(final String field, final int precisionStep, Long min, Long max, final boolean minInclusive, final boolean maxInclusive ) argument
72 newLongRange(final String field, Long min, Long max, final boolean minInclusive, final boolean maxInclusive ) argument
87 newIntRange(final String field, final int precisionStep, Integer min, Integer max, final boolean minInclusive, final boolean maxInclusive ) argument
102 newIntRange(final String field, Integer min, Integer max, final boolean minInclusive, final boolean maxInclusive ) argument
119 newDoubleRange(final String field, final int precisionStep, Double min, Double max, final boolean minInclusive, final boolean maxInclusive ) argument
136 newDoubleRange(final String field, Double min, Double max, final boolean minInclusive, final boolean maxInclusive ) argument
153 newFloatRange(final String field, final int precisionStep, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument
170 newFloatRange(final String field, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument
[all...]
H A DPhraseScorer.java36 PhrasePositions min, max; field in class:PhraseScorer
52 min = new PhrasePositions(postings[0].postings, postings[0].position, 0, postings[0].terms);
53 max = min;
61 max.next = min; // make it cyclic for easier manipulation
76 if (!min.skipTo(target)) {
80 min = min.next; // cyclic
100 while (min.doc < max.doc || restart) {
H A DNumericRangeQuery.java157 T min, T max, final boolean minInclusive, final boolean maxInclusive
164 this.min = min;
194 if (min != null && min.equals(max)) {
203 * by setting the min or max value to <code>null</code>. By setting inclusive to false, it will
207 Long min, Long max, final boolean minInclusive, final boolean maxInclusive
209 return new NumericRangeQuery<Long>(field, precisionStep, DataType.LONG, min, max, minInclusive, maxInclusive);
216 * by setting the min or max value to <code>null</code>. By setting inclusive to false, it will
220 Long min, Lon
156 NumericRangeQuery(final String field, final int precisionStep, final DataType dataType, T min, T max, final boolean minInclusive, final boolean maxInclusive ) argument
206 newLongRange(final String field, final int precisionStep, Long min, Long max, final boolean minInclusive, final boolean maxInclusive ) argument
219 newLongRange(final String field, Long min, Long max, final boolean minInclusive, final boolean maxInclusive ) argument
232 newIntRange(final String field, final int precisionStep, Integer min, Integer max, final boolean minInclusive, final boolean maxInclusive ) argument
245 newIntRange(final String field, Integer min, Integer max, final boolean minInclusive, final boolean maxInclusive ) argument
260 newDoubleRange(final String field, final int precisionStep, Double min, Double max, final boolean minInclusive, final boolean maxInclusive ) argument
275 newDoubleRange(final String field, Double min, Double max, final boolean minInclusive, final boolean maxInclusive ) argument
290 newFloatRange(final String field, final int precisionStep, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument
305 newFloatRange(final String field, Float min, Float max, final boolean minInclusive, final boolean maxInclusive ) argument
388 final T min, max; field in class:NumericRangeQuery
[all...]
H A DFuzzyTermEnum.java180 * similarity = 1 - ((float)distance / (float) (prefixLength + Math.min(textlen, targetlen)));
231 d[i] = Math.min(Math.min(d[i-1], p[i]), p[i-1]) + 1;
233 d[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]);
235 bestPossibleEditDistance = Math.min(bestPossibleEditDistance, d[i]);
262 return 1.0f - ((float)p[n] / (float) (prefix.length() + Math.min(n, m)));
273 return (int) ((1-minimumSimilarity) * (Math.min(text.length, m) + prefix.length()));
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTerm.java164 int min = offset, max = offset + length - 1;
165 int minVal = getAssociatedDocuments()[min].getDocument().getDocumentNumber();
174 if (target <= minVal) return target == minVal ? min : -1 - min;
177 assert min != max;
180 // A typical binarySearch algorithm uses pivot = (min + max) / 2.
186 pivot = (min + max) >> 1;
192 pivot = min + (int) ((target - (float) minVal) / (maxVal - (float) minVal) * (max - min));
200 min
[all...]
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/
H A DJaroWinklerDistance.java32 String max, min;
35 min = s2;
38 min = s1;
41 int[] matchIndexes = new int[min.length()];
45 for (int mi = 0; mi < min.length(); mi++) {
46 char c1 = min.charAt(mi);
47 for (int xi = Math.max(mi - range, 0), xn = Math.min(mi + range + 1, max
59 for (int i = 0, si = 0; i < min.length(); i++) {
61 ms1[si] = min.charAt(i);
78 for (int mi = 0; mi < min
[all...]
H A DLevensteinDistance.java95 d[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]+cost);
H A DNGramDistance.java68 for (int i=0,ni=Math.min(sl,tl);i<ni;i++) {
131 d[i] = Math.min(Math.min(d[i-1]+1, p[i]+1), p[i-1]+ec);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DScaleFloatFunction.java27 * Scales values to be between min and max.
29 * their min and max.
33 * still end up with 0.0 as the min value to map from. In these cases, an
39 protected final float min; field in class:ScaleFloatFunction
42 public ScaleFloatFunction(ValueSource source, float min, float max) { argument
44 this.min = min;
50 return "scale(" + source.description() + "," + min + "," + max + ")";
66 // Traverse the complete set of values to get the min and the max.
67 // Future alternatives include being able to ask a DocValues for min/ma
[all...]
H A DRangeMapFloatFunction.java36 protected final float min; field in class:RangeMapFloatFunction
41 public RangeMapFloatFunction(ValueSource source, float min, float max, float target, Float def) { argument
43 this.min = min;
51 return "map(" + source.description() + "," + min + "," + max + "," + target + ")";
61 return (val>=min && val<=max) ? target : (defaultVal == null ? val : defaultVal);
81 return "map(" + vals.toString(doc) + ",min=" + min + ",max=" + max + ",target=" + target + ")";
95 h += Float.floatToIntBits(min);
109 return this.min
[all...]
H A DMinFloatFunction.java21 * <code>MinFloatFunction</code> returns the min of it's components.
30 return "min";
42 val = Math.min(vals.floatVal(doc),val);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/
H A DLengthFilterFactory.java31 * &lt;filter class="solr.LengthFilterFactory" min="0" max="1" enablePositionIncrements="false"/&gt;
37 int min,max; field in class:LengthFilterFactory
39 public static final String MIN_KEY = "min";
45 min=Integer.parseInt(args.get(MIN_KEY));
51 return new LengthFilter(enablePositionIncrements, input,min,max);
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/misc/
H A DSweetSpotSimilarity.java31 * For lengthNorm, A global min/max can be specified to define the
33 * Below the min, and above the max the lengthNorm drops off in a
37 * A per field min/max can be specified if different fields have
76 public void setBaselineTfFactors(float base, float min) { argument
77 tf_min = min;
84 * @param min the minimum tf value to ever be returned (default: 0.0)
90 public void setHyperbolicTfFactors(float min, float max, argument
92 tf_hyper_min = min;
104 public void setLengthNormFactors(int min, int max, float steepness) { argument
105 this.ln_min = min;
124 setLengthNormFactors(String field, int min, int max, float steepness, boolean discountOverlaps) argument
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/apache/lucene/analysis/pt/
H A DRSLPStemmerBase.java53 * <li><code>N</code> is the min stem size, where stem is defined as the candidate stem
69 * <li><code>N</code> is the min word size. Words that are less than this length bypass
92 protected final int min; field in class:RSLPStemmerBase.Rule
97 * @param min minimum stem length
100 public Rule(String suffix, int min, String replacement) { argument
103 this.min = min;
110 return (len - suffix.length >= min && endsWith(s, len, suffix));
130 public RuleWithSetExceptions(String suffix, int min, String replacement, argument
132 super(suffix, min, replacemen
154 RuleWithSuffixExceptions(String suffix, int min, String replacement, String[] exceptions) argument
185 protected final int min; field in class:RSLPStemmerBase.Step
195 Step(String name, Rule rules[], int min, String suffixes[]) argument
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/
H A DStatsValuesFactory.java75 protected T min; field in class:AbstractStatsValues
93 updateMinMax((T) stv.get("min"), (T) stv.get("max"));
168 res.add("min", min);
190 * @param min Value that the current minimum should be updated against
193 protected abstract void updateMinMax(T min, T max); argument
243 min = Double.POSITIVE_INFINITY;
276 protected void updateMinMax(Number min, Number max) { argument
277 this.min = Math.min(thi
353 updateMinMax(Date min, Date max) argument
423 updateMinMax(String min, String max) argument
465 private static String min(String str1, String str2) { method in class:StringStatsValues
[all...]
/lucene-3.6.0/lucene/contrib/analyzers/stempel/src/java/org/egothor/stemmer/
H A DDiff.java218 short min = D;
219 if (go[min] >= go[X]) {
220 min = X;
222 if (go[min] > go[Y]) {
223 min = Y;
225 if (go[min] > go[R]) {
226 min = R;
228 way[x][y] = min;
229 net[x][y] = (short) go[min];
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/tartarus/snowball/
H A DSnowballProgram.java141 protected boolean in_grouping(char [] s, int min, int max) argument
145 if (ch > max || ch < min) return false;
146 ch -= min;
152 protected boolean in_grouping_b(char [] s, int min, int max) argument
156 if (ch > max || ch < min) return false;
157 ch -= min;
163 protected boolean out_grouping(char [] s, int min, int max) argument
167 if (ch > max || ch < min) {
171 ch -= min;
179 protected boolean out_grouping_b(char [] s, int min, in argument
195 in_range(int min, int max) argument
204 in_range_b(int min, int max) argument
213 out_range(int min, int max) argument
222 out_range_b(int min, int max) argument
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/
H A DNearSpansUnordered.java159 if (min().next()) { // trigger further scanning
170 if (min().doc() != max.doc()) { // maintain list
196 more = min().next();
216 while (more && min().doc() < target) { // skip as needed
217 if (min().skipTo(target)) {
227 private SpansCell min() { return queue.top(); } method in class:NearSpansUnordered
230 public int doc() { return min().doc(); }
232 public int start() { return min().start(); }
256 SpansCell pointer = min();
315 return (min()
[all...]
/lucene-3.6.0/solr/solrj/src/java/org/apache/noggit/
H A DCharUtil.java46 int len = Math.min(a_len,b_len);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/util/
H A DTestPagedBytes.java40 int chunk = Math.min(random.nextInt(1000), numBytes - written);
56 int chunk = Math.min(random.nextInt(1000), numBytes - read);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/schema/
H A DTrieDateField.java124 public Query getRangeQuery(QParser parser, SchemaField field, String min, String max, boolean minInclusive, boolean maxInclusive) { argument
125 return wrappedField.getRangeQuery(parser, field, min, max, minInclusive, maxInclusive);
129 public Query getRangeQuery(QParser parser, SchemaField sf, Date min, Date max, boolean minInclusive, boolean maxInclusive) { argument
131 min == null ? null : min.getTime(),
/lucene-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/response/
H A DFieldStatsInfo.java36 Double min; field in class:FieldStatsInfo
52 if( "min".equals( entry.getKey() ) ) {
53 min = (Double)entry.getValue();
101 if( min != null ) {
102 sb.append( " min:").append( min );
131 return min;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/payloads/
H A DMinPayloadFunction.java32 return Math.min(currentPayloadScore, currentScore);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/
H A DTestPagedBytes.java44 int chunk = Math.min(random.nextInt(1000), numBytes - written);
60 int chunk = Math.min(random.nextInt(1000), numBytes - read);
70 final int len = random.nextInt(Math.min(blockSize+1, numBytes - pos));
88 final int len = random.nextInt(Math.min(blockSize-2, 32768));

Completed in 1874 milliseconds

123456