Searched defs:freq (Results 1 - 25 of 44) sorted by relevance

12

/lucene-3.6.0/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/
H A DSuggestWord.java36 * The freq of the word
38 public int freq; field in class:SuggestWord
H A DHighFrequencyDictionary.java59 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 DLuceneDictionary.java57 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 DTestQueryTermVector.java33 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 DTestSimilarity.java44 @Override public float tf(float freq) { return freq; } argument
H A DTestDisjunctionMaxQuery.java56 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 DTestQueryTermVector.java33 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 DTestSimilarity.java44 @Override public float tf(float freq) { return freq; } argument
H A DTestDisjunctionMaxQuery.java56 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 DAbstractAllTermDocs.java54 public int freq() { method in class:AbstractAllTermDocs
H A DTermDocs.java49 int freq(); method in interface:TermDocs
H A DFreqProxFieldMergeState.java45 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 DSegmentTermDocs.java32 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 DInstantiatedTermDocs.java53 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 DDefaultSimilarity.java49 /** Implemented as <code>sqrt(freq)</code>. */
51 public float tf(float freq) { argument
52 return (float)Math.sqrt(freq);
H A DPhraseScorer.java38 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 DScorer.java133 * 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 DSimilarityDelegator.java51 public float tf(float freq) { argument
52 return delegee.tf(freq);
H A DTermScorer.java31 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 DExactPhraseScorer.java61 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 DSpanScorer.java38 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 DTermSpans.java34 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 DSweetSpotSimilarity.java206 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 DPruningReader.java292 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 DQualityQueriesFinder.java118 TermDf (String word, int freq) { argument
120 this.df = freq;

Completed in 76 milliseconds

12