/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/analysis/ |
H A D | LengthFilter.java | 33 private final int max; field in class:LengthFilter 41 public LengthFilter(boolean enablePositionIncrements, TokenStream in, int min, int max) { argument 44 this.max = max; 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 D | PhraseScorer.java | 36 PhrasePositions min, max; field in class:PhraseScorer 53 max = min; 54 max.doc = -1; 57 max.next = pp; 58 max = pp; 59 max.doc = -1; 61 max.next = min; // make it cyclic for easier manipulation 67 return max.doc; 72 return advance(max.doc); 77 max [all...] |
H A D | NumericRangeFilter.java | 54 * 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 or max valu 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 D | NumericRangeQuery.java | 77 * BooleanQuery's default max clause count. 157 T min, T max, final boolean minInclusive, final boolean maxInclusive 165 this.max = max; 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, Long max, fina 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 D | ScoreCachingWrappingScorer.java | 46 protected boolean score(Collector collector, int max, int firstDocID) throws IOException { argument 47 return scorer.score(collector, max, firstDocID);
|
H A D | DisjunctionMaxQuery.java | 47 /* Multiple of the non-max disjunct scores added into our final score. Non-zero values support tie-breaking. */ 122 float max = 0.0f, sum = 0.0f; 126 max = Math.max(max, sub); 130 return (((sum - max) * tieBreakerMultiplier * tieBreakerMultiplier) + max) * boost * boost; 164 float max = 0.0f, sum = 0.0f; 165 result.setDescription(tieBreakerMultiplier == 0.0f ? "max of:" : "max plu [all...] |
H A D | Similarity.java | 803 final int max = searcher.maxDoc(); 804 final float idf = idf(df, max); 809 ", maxDocs=" + max + ")"; 846 final int max = searcher.maxDoc(); 851 idf += idf(df, max);
|
/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/ |
H A D | JaroWinklerDistance.java | 32 String max, min; 34 max = s1; 37 max = s2; 40 int range = Math.max(max.length() / 2 - 1, 0); 43 boolean[] matchFlags = new boolean[max.length()]; 47 for (int xi = Math.max(mi - range, 0), xn = Math.min(mi + range + 1, max 49 if (!matchFlags[xi] && c1 == max.charAt(xi)) { 65 for (int i = 0, si = 0; i < max [all...] |
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/ |
H A D | InstantiatedTerm.java | 164 int min = offset, max = offset + length - 1; 166 int maxVal = getAssociatedDocuments()[max].getDocument().getDocumentNumber(); 175 if (target >= maxVal) return target == maxVal ? max : -2 - max; 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)); 201 max--; 206 max [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/ |
H A D | RangeMapFloatFunction.java | 37 protected final float max; field in class:RangeMapFloatFunction 41 public RangeMapFloatFunction(ValueSource source, float min, float max, float target, Float def) { argument 44 this.max = max; 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 + ")"; 97 h += Float.floatToIntBits(max); 110 && this.max [all...] |
H A D | ScaleFloatFunction.java | 27 * Scales values to be between min and max. 29 * their min and max. 40 protected final float max; field in class:ScaleFloatFunction 42 public ScaleFloatFunction(ValueSource source, float min, float max) { argument 45 this.max = max; 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/max 85 final float scale = (maxVal-minVal==0) ? 0 : (max [all...] |
H A D | MaxFloatFunction.java | 21 * <code>MaxFloatFunction</code> returns the max of it's components. 30 return "max"; 42 val = Math.max(vals.floatVal(doc),val);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/analysis/ |
H A D | LengthFilterFactory.java | 31 * <filter class="solr.LengthFilterFactory" min="0" max="1" enablePositionIncrements="false"/> 37 int min,max; field in class:LengthFilterFactory 40 public static final String MAX_KEY = "max"; 46 max=Integer.parseInt(args.get(MAX_KEY)); 51 return new LengthFilter(enablePositionIncrements, input,min,max);
|
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/ |
H A D | StatsValuesFactory.java | 74 protected T max; field in class:AbstractStatsValues 93 updateMinMax((T) stv.get("min"), (T) stv.get("max")); 169 res.add("max", max); 191 * @param max Value that the current maximum should be updated against 193 protected abstract void updateMinMax(T min, T max); argument 244 max = Double.NEGATIVE_INFINITY; 276 protected void updateMinMax(Number min, Number max) { argument 278 this.max = Math.max(thi 353 updateMinMax(Date min, Date max) argument 423 updateMinMax(String min, String max) argument 449 private static String max(String str1, String str2) { method in class:StringStatsValues [all...] |
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/misc/ |
H A D | SweetSpotSimilarity.java | 31 * 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 85 * @param max the maximum tf value to ever be returned (default: 2.0) 90 public void setHyperbolicTfFactors(float min, float max, argument 93 tf_hyper_max = max; 104 public void setLengthNormFactors(int min, int max, float steepness) { argument 106 this.ln_max = max; 115 * @param max maximum value 124 public void setLengthNormFactors(String field, int min, int max, argument [all...] |
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/ |
H A D | BoundedTreeSet.java | 24 * A TreeSet that ensures it never grows beyond a max size. 49 public void setMaxSize(int max) { argument 50 maxSize = max;
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/ |
H A D | TestMaxTermFrequency.java | 76 * Makes a bunch of single-char tokens (the max freq will at most be 255). 79 * puts the max-frequency term into expected, to be checked against the norm. 84 int max = 0; 89 max = Math.max(max, num); 91 expected.add(max);
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestMaxTermFrequency.java | 76 * Makes a bunch of single-char tokens (the max freq will at most be 255). 79 * puts the max-frequency term into expected, to be checked against the norm. 84 int max = 0; 89 max = Math.max(max, num); 91 expected.add(max);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
H A D | NearSpansUnordered.java | 49 private SpansCell max; // max element in queue field in class:NearSpansUnordered 100 if (max == null || doc() > max.doc() 101 || (doc() == max.doc()) && (end() > max.end())) { 102 max = this; 170 if (min().doc() != max.doc()) { // maintain list 234 public int end() { return max.end(); } 315 return (min().doc() == max [all...] |
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/ |
H A D | MockRandomMergePolicy.java | 81 int max = Math.min(10, eligibleSegments.size()-upto); 82 int inc = max <= 2 ? max : _TestUtil.nextInt(random, 2, max);
|
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/ |
H A D | MockRandomMergePolicy.java | 78 int max = Math.min(10, eligibleSegments.size()-upto); 79 int inc = max <= 2 ? max : _TestUtil.nextInt(random, 2, max);
|
/lucene-3.6.0/lucene/contrib/analyzers/common/src/java/org/tartarus/snowball/ |
H A D | SnowballProgram.java | 141 protected boolean in_grouping(char [] s, int min, int max) argument 145 if (ch > max || ch < min) return false; 152 protected boolean in_grouping_b(char [] s, int min, int max) argument 156 if (ch > max || ch < min) return false; 163 protected boolean out_grouping(char [] s, int min, int max) argument 167 if (ch > max || ch < min) { 179 protected boolean out_grouping_b(char [] s, int min, int max) argument 183 if (ch > max || ch < min) { 195 protected boolean in_range(int min, int max) argument 199 if (ch > max || c 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/util/ |
H A D | SimpleStringInterner.java | 48 cache = new Entry[Math.max(1,BitUtil.nextHighestPowerOfTwo(tableSize))]; 49 this.maxChainLength = Math.max(2,maxChainLength);
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/util/ |
H A D | TestIdentityHashSet.java | 33 int max = 100000; 35 for (int i = 0; i < max; i++) {
|
/lucene-3.6.0/solr/client/ruby/solr-ruby/examples/tang/ |
H A D | tang_importer.rb | 22 max = 320 33 for current_index in (1..max) do
|