/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 | SuggestWordFrequencyComparator.java | 30 if (first.freq > second.freq) { 33 if (first.freq < second.freq) {
|
H A D | SuggestWordScoreComparator.java | 37 if (first.freq > second.freq) { 41 if (first.freq < second.freq) {
|
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]);
|
/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]);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/ |
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 | 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 | 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...] |
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 | SimilarityDelegator.java | 51 public float tf(float freq) { argument 52 return delegee.tf(freq);
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/spans/ |
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();
|
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;
|
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/ |
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 | TermDocs.java | 49 int freq(); method in interface:TermDocs
|
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/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/core/src/test/org/apache/lucene/index/ |
H A D | TestLongPostings.java | 198 final int freq = postings.freq(); 199 assertTrue(freq >=1 && freq <= 4); 200 for(int pos=0;pos<freq;pos++) { 246 final int freq = postings.freq(); 247 assertTrue(freq >=1 && freq <= 4); 248 for(int pos=0;pos<freq;po [all...] |
H A D | TestSegmentTermDocs.java | 66 int freq = segTermDocs.freq(); 67 assertTrue(freq == 3); 131 assertEquals(4, tdocs.freq()); 134 assertEquals(4, tdocs.freq()); 159 assertEquals(4, tdocs.freq()); 162 assertEquals(4, tdocs.freq()); 191 assertEquals(4, tdocs.freq()); 194 assertEquals(4, tdocs.freq());
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/ |
H A D | TestLongPostings.java | 197 final int freq = postings.freq(); 198 assertTrue(freq >=1 && freq <= 4); 199 for(int pos=0;pos<freq;pos++) { 245 final int freq = postings.freq(); 246 assertTrue(freq >=1 && freq <= 4); 247 for(int pos=0;pos<freq;po [all...] |
H A D | TestSegmentTermDocs.java | 66 int freq = segTermDocs.freq(); 67 assertTrue(freq == 3); 131 assertEquals(4, tdocs.freq()); 134 assertEquals(4, tdocs.freq()); 159 assertEquals(4, tdocs.freq()); 162 assertEquals(4, tdocs.freq()); 191 assertEquals(4, tdocs.freq()); 194 assertEquals(4, tdocs.freq());
|
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/ |
H A D | FacetsAccumulator.java | 146 for (FacetRequest freq:searchParams.getFacetRequests()) { 147 if (!freq.supportsComplements()) {
|
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/ |
H A D | TestCachingTokenFilter.java | 78 assertEquals(1, termPositions.freq()); 83 assertEquals(2, termPositions.freq()); 89 assertEquals(1, termPositions.freq());
|
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/analysis/ |
H A D | TestCachingTokenFilter.java | 77 assertEquals(1, termPositions.freq()); 82 assertEquals(2, termPositions.freq()); 88 assertEquals(1, termPositions.freq());
|