Searched refs:freq (Results 1 - 25 of 125) sorted by relevance

12345

/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 DSuggestWordFrequencyComparator.java30 if (first.freq > second.freq) {
33 if (first.freq < second.freq) {
H A DSuggestWordScoreComparator.java37 if (first.freq > second.freq) {
41 if (first.freq < second.freq) {
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]);
/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]);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
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 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 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...]
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 DSimilarityDelegator.java51 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 DTermSpans.java34 protected int freq; field in class:TermSpans
48 if (count == freq) {
54 freq = positions.freq();
70 freq = positions.freq();
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;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
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 DTermDocs.java49 int freq(); method in interface:TermDocs
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/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/core/src/test/org/apache/lucene/index/
H A DTestLongPostings.java198 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 DTestSegmentTermDocs.java66 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 DTestLongPostings.java197 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 DTestSegmentTermDocs.java66 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 DFacetsAccumulator.java146 for (FacetRequest freq:searchParams.getFacetRequests()) {
147 if (!freq.supportsComplements()) {
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/analysis/
H A DTestCachingTokenFilter.java78 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 DTestCachingTokenFilter.java77 assertEquals(1, termPositions.freq());
82 assertEquals(2, termPositions.freq());
88 assertEquals(1, termPositions.freq());

Completed in 134 milliseconds

12345