/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/ |
H A D | SuggestWord.java | 36 * The freq of the word 38 public int freq; field in class:SuggestWord
|
H A D | HighFrequencyDictionary.java | 59 private long freq; field in class:HighFrequencyDictionary.HighFrequencyIterator 73 private boolean isFrequent(int freq) { argument 74 return freq >= minNumDocs; 78 return freq; 91 freq = termsEnum.docFreq();
|
H A D | LuceneDictionary.java | 57 private long freq; field in class:LuceneDictionary.TermIterator 71 return freq; 83 freq = termsEnum.docFreq();
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/ |
H A D | TestQueryTermVector.java | 33 int [] freq = result.getTermFrequencies(); 34 assertTrue(freq.length == 4); 35 checkGold(terms, gold, freq, goldFreqs); 42 freq = result.getTermFrequencies(); 43 assertTrue(freq.length == 4); 44 checkGold(terms, gold, freq, goldFreqs); 47 private void checkGold(String[] terms, String[] gold, int[] freq, int[] goldFreqs) { argument 50 assertTrue(freq[i] == goldFreqs[i]);
|
H A D | TestSimilarity.java | 44 @Override public float tf(float freq) { return freq; } argument
|
H A D | TestDisjunctionMaxQuery.java | 56 public float tf(float freq) { argument 57 if (freq > 0.0f) return 1.0f;
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/ |
H A D | TestQueryTermVector.java | 33 int [] freq = result.getTermFrequencies(); 34 assertTrue(freq.length == 4); 35 checkGold(terms, gold, freq, goldFreqs); 42 freq = result.getTermFrequencies(); 43 assertTrue(freq.length == 4); 44 checkGold(terms, gold, freq, goldFreqs); 47 private void checkGold(String[] terms, String[] gold, int[] freq, int[] goldFreqs) { argument 50 assertTrue(freq[i] == goldFreqs[i]);
|
H A D | TestSimilarity.java | 44 @Override public float tf(float freq) { return freq; } argument
|
H A D | TestDisjunctionMaxQuery.java | 56 public float tf(float freq) { argument 57 if (freq > 0.0f) return 1.0f;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
H A D | AbstractAllTermDocs.java | 54 public int freq() { method in class:AbstractAllTermDocs
|
H A D | TermDocs.java | 49 int freq(); method in interface:TermDocs
|
H A D | FreqProxFieldMergeState.java | 45 final ByteSliceReader freq = new ByteSliceReader(); field in class:FreqProxFieldMergeState 71 field.termsHashPerField.initReader(freq, currentTermID, 0); 91 if (freq.eof()) { 104 final int code = freq.readVInt(); 112 termFreq = freq.readVInt();
|
H A D | SegmentTermDocs.java | 32 int freq; field in class:SegmentTermDocs 112 public final int freq() { return freq; } method in class:SegmentTermDocs 125 freq = 1; 129 freq = 1; // freq is one 131 freq = freqStream.readVInt(); // else read freq 156 freq = 1; // freq i [all...] |
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/ |
H A D | InstantiatedTermDocs.java | 53 public int freq() { method in class:InstantiatedTermDocs 84 freqs[i] = freq();
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
H A D | DefaultSimilarity.java | 49 /** Implemented as <code>sqrt(freq)</code>. */ 51 public float tf(float freq) { argument 52 return (float)Math.sqrt(freq);
|
H A D | PhraseScorer.java | 38 private float freq; //phrase frequency in current doc as computed by phraseFreq(). field in class:PhraseScorer 88 float raw = getSimilarity().tf(freq) * value; // raw score 94 freq = 0.0f; 99 while (freq == 0.0f) { 107 freq = phraseFreq(); // check for phrase 119 public final float freq() { method in class:PhraseScorer 120 return freq;
|
H A D | Scorer.java | 133 * SloppyPhraseScorer discounts its freq according to how 137 public float freq() throws IOException { method in class:Scorer 138 throw new UnsupportedOperationException(this + " does not implement freq()");
|
H A D | SimilarityDelegator.java | 51 public float tf(float freq) { argument 52 return delegee.tf(freq);
|
H A D | TermScorer.java | 31 private int freq; field in class:TermScorer 88 freq = freqs[pointer]; 97 public float freq() { method in class:TermScorer 98 return freq; 121 freq = freqs[pointer]; 129 freq < SCORE_CACHE_SIZE // check cache 130 ? scoreCache[freq] // cache hit 131 : getSimilarity().tf(freq)*weightValue; // cache miss 150 freq = freqs[pointer]; 161 freqs[pointer] = freq [all...] |
H A D | ExactPhraseScorer.java | 61 private int freq; field in class:ExactPhraseScorer 76 // costly, so, if the relative freq of the 2nd 80 // freq of rarest 2 terms is close: 154 freq = phraseFreq(); 155 if (freq != 0) { 196 freq = phraseFreq(); 197 if (freq != 0) { 217 public float freq() { method in class:ExactPhraseScorer 218 return freq; 229 if (freq < SCORE_CACHE_SIZ [all...] |
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
H A D | SpanScorer.java | 38 protected float freq; field in class:SpanScorer 81 freq = 0.0f; 84 freq += getSimilarity().sloppyFreq(matchLength); 95 float raw = getSimilarity().tf(freq) * value; // raw score 100 public float freq() throws IOException { method in class:SpanScorer 101 return freq; 111 float phraseFreq = (expDoc == doc) ? freq : 0.0f;
|
H A D | TermSpans.java | 34 protected int freq; field in class:TermSpans 48 if (count == freq) { 54 freq = positions.freq(); 70 freq = positions.freq();
|
/lucene-3.6.0/lucene/contrib/misc/src/java/org/apache/lucene/misc/ |
H A D | SweetSpotSimilarity.java | 206 public float tf(int freq) { argument 207 return baselineTf(freq); 223 public float baselineTf(float freq) { argument 225 if (0.0f == freq) return 0.0f; 227 return (freq <= tf_min) 229 : (float)Math.sqrt(freq + (tf_base * tf_base) - tf_min); 247 public float hyperbolicTf(float freq) { argument 248 if (0.0f == freq) return 0.0f; 254 final double x = (double)(freq - xoffset);
|
/lucene-3.6.0/lucene/contrib/pruning/src/java/org/apache/lucene/index/ |
H A D | PruningReader.java | 292 positions = new int[tp.freq()]; 320 public int freq() { method in class:PruningReader.PruningTermPositions
|
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/quality/utils/ |
H A D | QualityQueriesFinder.java | 118 TermDf (String word, int freq) { argument 120 this.df = freq;
|