Searched refs:directory (Results 1 - 25 of 219) sorted by relevance

123456789

/lucene-3.6.0/solr/core/src/java/org/apache/solr/core/
H A DRAMDirectoryFactory.java36 RefCntRamDirectory directory = directories.get(path);
37 if (directory == null || !directory.isOpen()) {
38 directory = (RefCntRamDirectory) openNew(path);
39 directories.put(path, directory);
41 directory.incRef();
44 return directory;
51 RefCntRamDirectory directory = directories.get(path);
52 if (directory == null || !directory
[all...]
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/store/
H A DRAMFile.java30 RAMDirectory directory; field in class:RAMFile
39 RAMFile(RAMDirectory directory) { argument
40 this.directory = directory;
68 if (directory != null) {
69 directory.sizeInBytes.getAndAdd(size);
H A DFSDirectory.java123 protected final File directory; // The underlying filesystem directory field in class:FSDirectory
127 // returns the canonical version of the directory, creating it if it doesn't exist.
133 * @param path the path of the directory
143 directory = getCanonicalPath(path);
145 if (directory.exists() && !directory.isDirectory())
146 throw new NoSuchDirectoryException("file '" + directory + "' exists but is not a directory");
153 * The directory returne
261 fileModified(File directory, String name) argument
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestNewestSegment.java27 Directory directory = newDirectory();
28 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
31 directory.close();
H A DTestConcurrentMergeScheduler.java70 MockDirectoryWrapper directory = newDirectory();
72 directory.failOn(failure);
74 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMaxBufferedDocs(2));
115 IndexReader reader = IndexReader.open(directory, true);
118 directory.close();
124 MockDirectoryWrapper directory = newDirectory();
131 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig(
161 IndexReader reader = IndexReader.open(directory, true);
165 directory.close();
169 MockDirectoryWrapper directory
[all...]
H A DTestStressIndexing.java96 private Directory directory; field in class:TestStressIndexing.SearcherThread
98 public SearcherThread(Directory directory, TimedThread[] threads) { argument
100 this.directory = directory;
106 IndexReader ir = IndexReader.open(directory, true);
119 public void runStressTest(Directory directory, MergeScheduler mergeScheduler) throws Exception { argument
120 IndexWriter modifier = new IndexWriter(directory, newIndexWriterConfig(
142 SearcherThread searcherThread1 = new SearcherThread(directory, threads);
146 SearcherThread searcherThread2 = new SearcherThread(directory, threads);
168 Directory directory
[all...]
H A DTestAtomicUpdate.java106 private Directory directory; field in class:TestAtomicUpdate.SearcherThread
108 public SearcherThread(Directory directory, TimedThread[] threads) { argument
110 this.directory = directory;
115 IndexReader r = IndexReader.open(directory, true);
125 public void runTest(Directory directory) throws Exception { argument
133 IndexWriter writer = new MockIndexWriter(directory, conf);
148 IndexReader r = IndexReader.open(directory, true);
160 SearcherThread searcherThread1 = new SearcherThread(directory, threads);
164 SearcherThread searcherThread2 = new SearcherThread(directory, thread
[all...]
H A DTestIsCurrent.java34 private Directory directory; field in class:TestIsCurrent
40 // initialize directory
41 directory = newDirectory();
42 writer = new RandomIndexWriter(random, directory);
55 directory.close();
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestNewestSegment.java27 Directory directory = newDirectory();
28 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer(random)));
31 directory.close();
H A DTestConcurrentMergeScheduler.java70 MockDirectoryWrapper directory = newDirectory();
72 directory.failOn(failure);
74 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setMaxBufferedDocs(2));
115 IndexReader reader = IndexReader.open(directory, true);
118 directory.close();
124 MockDirectoryWrapper directory = newDirectory();
131 IndexWriter writer = new IndexWriter(directory, newIndexWriterConfig(
161 IndexReader reader = IndexReader.open(directory, true);
165 directory.close();
169 MockDirectoryWrapper directory
[all...]
H A DTestStressIndexing.java96 private Directory directory; field in class:TestStressIndexing.SearcherThread
98 public SearcherThread(Directory directory, TimedThread[] threads) { argument
100 this.directory = directory;
106 IndexReader ir = IndexReader.open(directory, true);
119 public void runStressTest(Directory directory, MergeScheduler mergeScheduler) throws Exception { argument
120 IndexWriter modifier = new IndexWriter(directory, newIndexWriterConfig(
142 SearcherThread searcherThread1 = new SearcherThread(directory, threads);
146 SearcherThread searcherThread2 = new SearcherThread(directory, threads);
168 Directory directory
[all...]
H A DTestAtomicUpdate.java106 private Directory directory; field in class:TestAtomicUpdate.SearcherThread
108 public SearcherThread(Directory directory, TimedThread[] threads) { argument
110 this.directory = directory;
115 IndexReader r = IndexReader.open(directory, true);
125 public void runTest(Directory directory) throws Exception { argument
133 IndexWriter writer = new MockIndexWriter(directory, conf);
148 IndexReader r = IndexReader.open(directory, true);
160 SearcherThread searcherThread1 = new SearcherThread(directory, threads);
164 SearcherThread searcherThread2 = new SearcherThread(directory, thread
[all...]
H A DTestIsCurrent.java34 private Directory directory; field in class:TestIsCurrent
40 // initialize directory
41 directory = newDirectory();
42 writer = new RandomIndexWriter(random, directory);
55 directory.close();
/lucene-3.6.0/solr/client/ruby/flare/vendor/plugins/engines/lib/engines/rails_extensions/
H A Drails_initializer.rb41 def load_plugin_with_engine_additions(directory)
42 name = plugin_name(directory)
45 logger.debug "loading plugin from #{directory} with engine additions"
48 plugin = Plugin.new(plugin_name(directory), directory)
54 load_plugin_without_engine_additions(directory)
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DReadOnlyDirectoryReader.java26 ReadOnlyDirectoryReader(Directory directory, SegmentInfos sis, IndexDeletionPolicy deletionPolicy, int termInfosIndexDivisor) throws IOException { argument
27 super(directory, sis, deletionPolicy, true, termInfosIndexDivisor);
30 ReadOnlyDirectoryReader(Directory directory, SegmentInfos infos, SegmentReader[] oldReaders, int[] oldStarts, Map<String,byte[]> oldNormsCache, boolean doClone, argument
32 super(directory, infos, oldReaders, oldStarts, oldNormsCache, true, doClone, termInfosIndexDivisor);
H A DSegmentWriteState.java31 public final Directory directory; field in class:SegmentWriteState
66 public SegmentWriteState(PrintStream infoStream, Directory directory, String segmentName, FieldInfos fieldInfos, argument
70 this.directory = directory;
/lucene-3.6.0/solr/core/src/test/org/apache/solr/core/
H A DRAMDirectoryFactoryTest.java35 final Directory directory = new RefCntRamDirectory();
39 return directory;
46 "every time open() is called for the same path", directory, dir1);
48 "every time open() is called for the same path", directory, dir2);
55 "to index directory on the file system", dir);
H A DSolrCoreCheckLockOnStartupTest.java45 Directory directory = newFSDirectory(new File(dataDir, "index"));
48 directory,
51 directory.close();
57 Directory directory = newFSDirectory(new File(dataDir, "index"), new SimpleFSLockFactory());
59 IndexWriter indexWriter = new IndexWriter(directory, new IndexWriterConfig(Version.LUCENE_36, null));
73 directory.close();
81 Directory directory = newFSDirectory(new File(dataDir, "index"), new NativeFSLockFactory());
83 IndexWriter indexWriter = new IndexWriter(directory, new IndexWriterConfig(Version.LUCENE_36, null));
97 directory.close();
/lucene-3.6.0/solr/client/ruby/flare/public/
H A Ddispatch.cgi21 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
H A Ddispatch.rb21 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/index/streaming/
H A DCategoryParentsStreamTest.java22 import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter;
52 Directory directory = newDirectory();
54 directory);
67 directory.close();
79 Directory directory = newDirectory();
81 directory);
108 directory.close();
120 Directory directory = newDirectory();
121 TaxonomyWriter taxonomyWriter = new DirectoryTaxonomyWriter(directory);
142 directory
[all...]
H A DCategoryTokenizerTest.java20 import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter;
49 Directory directory = newDirectory();
51 directory);
77 directory.close();
88 Directory directory = newDirectory();
90 directory);
113 directory.close();
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/utils/
H A DExtractWikipedia.java52 public File directory(int count, File directory) { argument
53 if (directory == null) {
54 directory = outputDir;
61 return directory;
63 directory = new File(directory, (Integer.toString(base / BASE)));
64 directory = new File(directory, (Integer.toString(count / (base / BASE))));
65 return directory(coun
[all...]
/lucene-3.6.0/solr/core/src/java/org/apache/solr/update/
H A DMergeIndexesCommand.java41 sb.append(readers[0].directory());
43 sb.append(",").append(readers[i].directory());
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/search/
H A DTestNGramPhraseQuery.java31 private static Directory directory; field in class:TestNGramPhraseQuery
35 directory = newDirectory();
36 RandomIndexWriter writer = new RandomIndexWriter(random, directory);
38 reader = IndexReader.open(directory);
45 directory.close();
46 directory = null;

Completed in 2663 milliseconds

123456789