Searched defs:maxDoc (Results 1 - 25 of 33) sorted by relevance

12

/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DDocSetDelegateCollector.java33 public DocSetDelegateCollector(int smallSetSize, int maxDoc, Collector collector) { argument
34 super(smallSetSize, maxDoc);
55 if (bits==null) bits = new OpenBitSet(maxDoc);
H A DDocSetCollector.java34 final int maxDoc; field in class:DocSetCollector
43 public DocSetCollector(int smallSetSize, int maxDoc) { argument
45 this.maxDoc = maxDoc;
64 if (bits==null) bits = new OpenBitSet(maxDoc);
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DAbstractAllTermDocs.java31 protected int maxDoc; field in class:AbstractAllTermDocs
34 protected AbstractAllTermDocs(int maxDoc) { argument
35 this.maxDoc = maxDoc;
65 while (i < length && doc < maxDoc) {
78 while (doc < maxDoc) {
H A DMultiReader.java39 private final int maxDoc; field in class:MultiReader
78 int maxDoc = 0;
81 starts[i] = maxDoc;
82 maxDoc += reader.maxDoc(); // compute maxDocs
87 this.maxDoc = starts[subReaders.length] = maxDoc;
242 public int maxDoc() { method in class:MultiReader
244 return maxDoc;
309 bytes = new byte[maxDoc()];
[all...]
H A DFilterIndexReader.java178 public int maxDoc() { method in class:FilterIndexReader
180 return in.maxDoc();
H A DParallelReader.java54 private int maxDoc; field in class:ParallelReader
104 * of {@link IndexReader#maxDoc()}
112 this.maxDoc = reader.maxDoc();
117 if (reader.maxDoc() != maxDoc) // check compatibility
119 ("All readers must have same maxDoc: "+maxDoc+"!="+reader.maxDoc());
257 public int maxDoc() { method in class:ParallelReader
[all...]
H A DIndexReader.java1113 public abstract int maxDoc(); method in class:IndexReader
1117 return maxDoc() - numDocs();
1135 if (n < 0 || n >= maxDoc()) {
1136 throw new IllegalArgumentException("docID must be >= 0 and < maxDoc=" + maxDoc() + " (got docID=" + n + ")");
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/search/
H A DScoredDocIdCollector.java45 public NonScoringDocIdCollector(int maxDoc) { argument
46 super(maxDoc);
103 public ScoringDocIdCollector(int maxDoc) { argument
104 super(maxDoc);
105 scores = new float[maxDoc];
174 * @param maxDoc the number of documents that are expected to be collected.
176 * be thrown. Usually you should pass {@link IndexReader#maxDoc()} of
182 public static ScoredDocIdCollector create(int maxDoc, boolean enableScoring) { argument
183 return enableScoring ? new ScoringDocIdCollector(maxDoc)
184 : new NonScoringDocIdCollector(maxDoc);
187 ScoredDocIdCollector(int maxDoc) argument
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/java/org/apache/lucene/facet/util/
H A DScoredDocIdsUtils.java51 final int maxDoc = reader.maxDoc();
59 complement = new OpenBitSetDISI(docIdSet.iterator(), maxDoc);
62 complement.flip(0, maxDoc);
67 return createScoredDocIds(complement, maxDoc);
175 * The returned set contains the range of [0 .. reader.maxDoc ) doc ids
187 public static final ScoredDocIDs createScoredDocIds(final DocIdSet docIdSet, final int maxDoc) { argument
214 openBitSetDISI = new OpenBitSetDISI(docIdSet.iterator(), maxDoc);
231 final int maxDoc; field in class:ScoredDocIdsUtils.AllDocsScoredDocIDs
234 this.maxDoc
315 final int maxDoc; field in class:ScoredDocIdsUtils.AllLiveDocsScoredDocIDs
[all...]
/lucene-3.6.0/lucene/contrib/grouping/src/java/org/apache/lucene/search/grouping/
H A DAbstractAllGroupHeadsCollector.java45 * @param maxDoc The maxDoc of the top level {@link IndexReader}.
48 public FixedBitSet retrieveGroupHeads(int maxDoc) { argument
49 FixedBitSet bitSet = new FixedBitSet(maxDoc);
/lucene-3.6.0/lucene/contrib/remote/src/java/org/apache/lucene/search/
H A DRemoteSearchable.java69 public int maxDoc() throws IOException { method in class:RemoteSearchable
70 return local.maxDoc();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DSearchable.java93 * @see org.apache.lucene.index.IndexReader#maxDoc()
95 int maxDoc() throws IOException; method in interface:Searchable
H A DSearcher.java203 abstract public int maxDoc() throws IOException; method in class:Searcher
H A DMultiSearcher.java56 private final int maxDoc; // document count field in class:MultiSearcher.CachedDfSource
58 public CachedDfSource(Map<Term,Integer> dfMap, int maxDoc, Similarity similarity) { argument
60 this.maxDoc = maxDoc;
86 public int maxDoc() { method in class:MultiSearcher.CachedDfSource
87 return maxDoc;
137 private int maxDoc = 0; field in class:MultiSearcher
145 starts[i] = maxDoc;
146 maxDoc += searchables[i].maxDoc(); // comput
202 public int maxDoc() throws IOException { method in class:MultiSearcher
[all...]
H A DIndexSearcher.java193 int maxDoc = 0;
195 docStarts[i] = maxDoc;
196 maxDoc += subReaders[i].maxDoc();
225 * @see org.apache.lucene.index.IndexReader#maxDoc()
228 public int maxDoc() { method in class:IndexSearcher
229 return reader.maxDoc();
439 int limit = reader.maxDoc();
509 int limit = reader.maxDoc();
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/function/
H A DValueSourceScorer.java30 protected final int maxDoc; field in class:ValueSourceScorer
37 this.maxDoc = reader.maxDoc();
67 if (doc >= maxDoc) return doc = NO_MORE_DOCS;
86 if (doc >= maxDoc) return false;
H A DFunctionQuery.java113 final int maxDoc; field in class:FunctionQuery.AllScorer
124 this.maxDoc = reader.maxDoc();
142 if (doc>=maxDoc) {
164 if (doc>=maxDoc) {
/lucene-3.6.0/lucene/contrib/grouping/src/test/org/apache/lucene/search/grouping/
H A DTermAllGroupHeadsCollectorTest.java104 int maxDoc = indexSearcher.maxDoc();
110 assertTrue(openBitSetContains(new int[]{2, 3, 5, 7}, c1.retrieveGroupHeads(maxDoc), maxDoc));
115 assertTrue(openBitSetContains(new int[]{2, 3, 4}, c2.retrieveGroupHeads(maxDoc), maxDoc));
120 assertTrue(openBitSetContains(new int[]{1, 5}, c3.retrieveGroupHeads(maxDoc), maxDoc));
127 assertTrue(openBitSetContains(new int[]{2, 3, 5, 7}, c4.retrieveGroupHeads(maxDoc), maxDoc));
360 openBitSetContains(int[] expectedDocs, FixedBitSet actual, int maxDoc) argument
[all...]
/lucene-3.6.0/lucene/contrib/pruning/src/java/org/apache/lucene/index/pruning/
H A DRIDFTermPruningPolicy.java51 double maxDoc; field in class:RIDFTermPruningPolicy
64 maxDoc = in.maxDoc();
71 idf = - Math.log((double)in.docFreq(t) / maxDoc);
80 ridf = idf + Math.log(1 - Math.pow(Math.E, - totalFreq / maxDoc));
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedIndexReader.java133 public int maxDoc() { method in class:InstantiatedIndexReader
160 uncommittedDeletedDocuments = new BitVector(maxDoc());
/lucene-3.6.0/lucene/test-framework/src/java/org/apache/lucene/index/
H A DRandomIndexWriter.java179 public int maxDoc() { method in class:RandomIndexWriter
180 return w.maxDoc();
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/index/
H A DRandomIndexWriter.java175 public int maxDoc() { method in class:RandomIndexWriter
176 return w.maxDoc();
/lucene-3.6.0/solr/core/src/test/org/apache/solr/
H A DTestGroupingSearch.java807 Doc d1 = o1.maxDoc;
808 Doc d2 = o2.maxDoc;
859 public Doc maxDoc; // the document highest according to the "sort" param field in class:TestGroupingSearch.Grp
865 maxDoc = arr.length > 0 ? arr[0] : null;
/lucene-3.6.0/solr/core/src/test/org/apache/solr/search/
H A DTestDocSet.java182 public DocSet getRandomDocSet(int n, int maxDoc) { argument
183 OpenBitSet obs = new OpenBitSet(maxDoc);
187 int idx = rand.nextInt(maxDoc);
207 public DocSet[] getRandomSets(int nSets, int minSetSize, int maxSetSize, int maxDoc) { argument
215 sets[i] = getRandomDocSet(sz,maxDoc);
231 for (int maxDoc : maxDocs) {
233 DocSet[] sets = getRandomHashSets(nSets,maxSetsize, maxDoc);
240 System.out.println("maxDoc="+maxDoc+"\tcollisions="+(cend-cstart));
262 int maxDoc
337 dummyIndexReader(final int maxDoc) argument
363 dummyMultiReader(int nSeg, int maxDoc) argument
[all...]
/lucene-3.6.0/lucene/contrib/memory/src/java/org/apache/lucene/index/memory/
H A DMemoryIndex.java1122 public int maxDoc() { method in class:MemoryIndex.MemoryIndexReader
1123 if (DEBUG) System.err.println("MemoryIndexReader.maxDoc");

Completed in 603 milliseconds

12