Searched defs:docs (Results 1 - 25 of 67) sorted by relevance

123

/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestStressAdvance.java90 private void testOne(TermDocs docs, List<Integer> expected) throws Exception { argument
106 if (docs.next()) {
107 docID = docs.doc();
118 if (docs.skipTo(expected.get(upto))) {
119 docID = docs.doc();
H A DTestRollingUpdates.java28 // Just updates the same set of N docs over and over, to
35 final LineFileDocs docs = new LineFileDocs(random);
44 final Document doc = docs.nextDoc();
72 docs.close();
81 final LineFileDocs docs = new LineFileDocs(random);
89 threads[i] = new IndexingThread(docs, w, numUpdates);
103 docs.close();
108 final LineFileDocs docs; field in class:TestRollingUpdates.IndexingThread
112 public IndexingThread(LineFileDocs docs, IndexWriter writer, int num) { argument
114 this.docs
[all...]
H A DTestLazyBug.java40 * if other docs have already been accessed.
109 public void doTest(int[] docs) throws Exception { argument
111 for (int i = 0; i < docs.length; i++) {
112 Document d = reader.document(docs[i], SELECTOR);
122 assertNotNull(docs[i]+" FIELD: "+fname, fval);
128 throw new Exception(docs[i]+" WTF: "+f.name(), e);
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestFieldValueFilter.java41 int docs = atLeast(10);
42 int[] docStates = buildIndex(writer, docs);
53 new FieldValueFilter("some", true), docs);
70 int docs = atLeast(10);
71 int[] docStates = buildIndex(writer, docs);
81 new FieldValueFilter("some"), docs);
94 private int[] buildIndex(RandomIndexWriter writer, int docs) argument
96 int[] docStates = new int[docs];
97 for (int i = 0; i < docs; i++) {
108 int numDeletes = random.nextInt(docs);
[all...]
H A DTestFilteredSearch.java59 // we index 60 docs - this will create 6 segments
67 for (int i = 0; i < 60; i++) {//Simple docs
96 private final int[] docs; field in class:TestFilteredSearch.SimpleDocIdSetFilter
100 public SimpleDocIdSetFilter(int[] docs) { argument
101 this.docs = docs;
118 for (;index < docs.length; index++) {
119 final int docId = docs[index];
/lucene-3.6.0/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/
H A DDocumentClusteringEngine.java43 * Cluster the set of docs. Clustering of documents is often an expensive task that can take a long time.
44 * @param docs The docs to cluster. If null, cluster all docs as in {@link #cluster(org.apache.solr.common.params.SolrParams)}
48 public abstract NamedList cluster(DocSet docs, SolrParams solrParams); argument
/lucene-3.6.0/solr/contrib/clustering/src/test/org/apache/solr/handler/clustering/
H A DMockDocumentClusteringEngine.java29 public NamedList cluster(DocSet docs, SolrParams solrParams) { argument
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestStressAdvance.java89 private void testOne(TermDocs docs, List<Integer> expected) throws Exception { argument
105 if (docs.next()) {
106 docID = docs.doc();
117 if (docs.skipTo(expected.get(upto))) {
118 docID = docs.doc();
H A DTestRollingUpdates.java28 // Just updates the same set of N docs over and over, to
35 final LineFileDocs docs = new LineFileDocs(random);
44 final Document doc = docs.nextDoc();
72 docs.close();
81 final LineFileDocs docs = new LineFileDocs(random);
89 threads[i] = new IndexingThread(docs, w, numUpdates);
103 docs.close();
108 final LineFileDocs docs; field in class:TestRollingUpdates.IndexingThread
112 public IndexingThread(LineFileDocs docs, IndexWriter writer, int num) { argument
114 this.docs
[all...]
H A DTestLazyBug.java40 * if other docs have already been accessed.
109 public void doTest(int[] docs) throws Exception { argument
111 for (int i = 0; i < docs.length; i++) {
112 Document d = reader.document(docs[i], SELECTOR);
122 assertNotNull(docs[i]+" FIELD: "+fname, fval);
128 throw new Exception(docs[i]+" WTF: "+f.name(), e);
/lucene-3.6.0/lucene/contrib/queryparser/src/test/org/apache/lucene/queryParser/surround/query/
H A DSingleFieldTestDb.java34 private String[] docs; field in class:SingleFieldTestDb
40 docs = documents;
45 for (int j = 0; j < docs.length; j++) {
47 d.add(new Field(fieldName, docs[j], Field.Store.NO, Field.Index.ANALYZED));
57 String[] getDocs() {return docs;}
/lucene-3.6.0/solr/core/src/test/org/apache/solr/highlight/
H A DDummyHighlighter.java31 public NamedList<Object> doHighlighting(DocList docs, Query query, argument
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DAbstractAllTermDocs.java22 /** Base class for enumerating all but deleted docs.
62 public int read(int[] docs, int[] freqs) throws IOException { argument
63 final int length = docs.length;
67 docs[i] = doc;
H A DTermDocs.java56 * <i>docs</i>. Document numbers are stored in <i>docs</i>, and term
58 * long as the <i>docs</i> array.
62 int read(int[] docs, int[] freqs) throws IOException; argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/handler/component/
H A DMoreLikeThisComponent.java66 DocList docs, int flags ) throws IOException {
72 DocIterator iterator = docs.iterator();
65 getMoreLikeThese( ResponseBuilder rb, SolrIndexSearcher searcher, DocList docs, int flags ) argument
/lucene-3.6.0/lucene/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/
H A DInstantiatedTermDocs.java77 public int read(int[] docs, int[] freqs) { argument
79 for (i = 0; i < docs.length; i++) {
83 docs[i] = doc();
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/search/
H A DTermScorer.java33 private final int[] docs = new int[32]; // buffered doc numbers field in class:TermScorer
74 while (doc < end) { // for docs in window
78 pointerMax = termDocs.read(docs, freqs); // refill buffers
87 doc = docs[pointer];
112 pointerMax = termDocs.read(docs, freqs); // refill buffer
120 doc = docs[pointer];
149 if (docs[pointer] >= target) {
151 return doc = docs[pointer];
160 docs[pointer] = doc = termDocs.doc();
/lucene-3.6.0/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/
H A DTestDocBuilder.java65 assertEquals(0, swi.docs.size());
87 assertEquals(0, swi.docs.size());
111 assertEquals(1, swi.docs.size());
118 SolrInputDocument doc = swi.docs.get(i);
142 assertEquals(1, swi.docs.size());
149 SolrInputDocument doc = swi.docs.get(i);
177 assertEquals(3, swi.docs.size());
180 SolrInputDocument doc = swi.docs.get(i);
192 List<SolrInputDocument> docs = new ArrayList<SolrInputDocument>(); field in class:TestDocBuilder.SolrWriterImpl
206 return docs
[all...]
/lucene-3.6.0/solr/contrib/dataimporthandler-extras/src/test/org/apache/solr/handler/dataimport/
H A DTestMailEntityProcessor.java72 assertEquals("top1 did not return 2 messages", swi.docs.size(), 2);
89 assertEquals("top2 and its children did not return 8 messages", swi.docs.size(), 8);
107 assertEquals("top2 and its direct children did not return 5 messages", swi.docs.size(), 5);
125 assertEquals("top2 and its direct children did not return 3 messages", swi.docs.size(), 3);
144 assertEquals("top2 and its direct children did not return 3 messages", swi.docs.size(), 3);
162 assertEquals("top2 and its direct children did not return 3 messages", swi.docs.size(), 3);
186 List<SolrInputDocument> docs = new ArrayList<SolrInputDocument>(); field in class:TestMailEntityProcessor.SolrWriterImpl
196 return docs.add(doc);
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/search/
H A DTestFilteredSearch.java59 // we index 60 docs - this will create 6 segments
67 for (int i = 0; i < 60; i++) {//Simple docs
96 private final int[] docs; field in class:TestFilteredSearch.SimpleDocIdSetFilter
100 public SimpleDocIdSetFilter(int[] docs) { argument
101 this.docs = docs;
118 for (;index < docs.length; index++) {
119 final int docId = docs[index];
/lucene-3.6.0/lucene/contrib/benchmark/src/test/org/apache/lucene/benchmark/byTask/feeds/
H A DTrecContentSourceTest.java41 private String docs = null; field in class:TrecContentSourceTest.StringableTrecSource
43 public StringableTrecSource(String docs, boolean forever) { argument
44 this.docs = docs;
57 reader = new BufferedReader(new StringReader(docs));
88 String docs = "<DOC>\r\n" +
114 StringableTrecSource source = new StringableTrecSource(docs, false);
125 String docs = "<DOC>\r\n" +
177 StringableTrecSource source = new StringableTrecSource(docs, false);
194 String docs
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/highlight/
H A DSolrHighlighter.java129 * @param docs query results
138 public abstract NamedList<Object> doHighlighting(DocList docs, Query query, SolrQueryRequest req, String[] defaultFields) throws IOException; argument
/lucene-3.6.0/solr/core/src/java/org/apache/solr/search/
H A DDocSlice.java27 final int offset; // starting position of the docs (zero based)
29 final int[] docs; // a slice of documents (docs 0-100 of the query) field in class:DocSlice
38 * @param offset starting offset for this range of docs
40 * @param docs array of docids starting at position 0
41 * @param scores array of scores that corresponds to docs, may be null
44 public DocSlice(int offset, int len, int[] docs, float[] scores, int matches, float maxScore) { argument
47 this.docs=docs;
59 if (requestedEnd > docs
[all...]
H A DHashDocSet.java25 * using a primitive int hash table. It can be a better choice if there are few docs
42 // lucene docs are numbered from 0, so a neg number must be used for missing.
52 public HashDocSet(int[] docs, int offset, int len) { argument
53 this(docs, offset, len, DEFAULT_INVERSE_LOAD_FACTOR);
57 public HashDocSet(int[] docs, int offset, int len, float inverseLoadFactor) { argument
72 put(docs[i]);
/lucene-3.6.0/solr/core/src/java/org/apache/solr/util/
H A DHighlightingUtils.java121 public static NamedList doHighlighting(DocList docs, Query query, SolrQueryRequest req, String[] defaultFields) throws IOException { argument
122 return HIGHLIGHTER.doHighlighting(docs, query, req, defaultFields);

Completed in 27 milliseconds

123