Searched refs:dir (Results 1 - 25 of 409) sorted by relevance

1234567891011>>

/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/test-framework/src/java/org/apache/lucene/store/
H A DMockIndexOutputWrapper.java32 private MockDirectoryWrapper dir; field in class:MockIndexOutputWrapper
40 public MockIndexOutputWrapper(MockDirectoryWrapper dir, IndexOutput delegate, String name) { argument
41 this.dir = dir;
49 dir.maybeThrowDeterministicException();
52 if (dir.trackDiskUsage) {
55 long size = dir.getRecomputedActualSizeInBytes();
56 if (size > dir.maxUsedSize) {
57 dir.maxUsedSize = size;
60 dir
[all...]
H A DMockLockFactoryWrapper.java27 MockDirectoryWrapper dir; field in class:MockLockFactoryWrapper
30 public MockLockFactoryWrapper(MockDirectoryWrapper dir, LockFactory delegate) { argument
31 this.dir = dir;
53 dir.openLocks.remove(lockName);
73 dir.openLocks.add(name);
83 dir.openLocks.remove(name);
/lucene-3.6.0/lucene/backwards/src/test-framework/java/org/apache/lucene/store/
H A DMockIndexOutputWrapper.java32 private MockDirectoryWrapper dir; field in class:MockIndexOutputWrapper
40 public MockIndexOutputWrapper(MockDirectoryWrapper dir, IndexOutput delegate, String name) { argument
41 this.dir = dir;
49 dir.maybeThrowDeterministicException();
52 if (dir.trackDiskUsage) {
55 long size = dir.getRecomputedActualSizeInBytes();
56 if (size > dir.maxUsedSize) {
57 dir.maxUsedSize = size;
60 dir
[all...]
H A DMockLockFactoryWrapper.java23 MockDirectoryWrapper dir; field in class:MockLockFactoryWrapper
26 public MockLockFactoryWrapper(MockDirectoryWrapper dir, LockFactory delegate) { argument
27 this.dir = dir;
49 dir.openLocks.remove(lockName);
69 dir.openLocks.add(name);
79 dir.openLocks.remove(name);
/lucene-3.6.0/lucene/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/
H A DFileUtils.java31 * @param dir file or directory
35 public static boolean fullyDelete(File dir) throws IOException { argument
36 if (dir == null || !dir.exists()) return false;
37 File contents[] = dir.listFiles();
51 return dir.delete();
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/index/
H A DTestAllZerosSegmentsFile.java28 Directory dir = newDirectory();
29 RandomIndexWriter w = new RandomIndexWriter(random, dir);
35 SegmentInfos.getLastCommitGeneration(dir)+1);
36 IndexOutput out = dir.createOutput(nextSegmentsFile);
42 IndexReader r= IndexReader.open(dir,true);
45 dir.close();
H A DTestCrash.java37 private IndexWriter initIndex(Random random, MockDirectoryWrapper dir, boolean initialCommit) throws IOException { argument
38 dir.setLockFactory(NoLockFactory.getNoLockFactory());
40 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
59 final MockDirectoryWrapper dir = (MockDirectoryWrapper) writer.getDirectory();
62 dir.crash();
64 dir.clearCrash();
72 Directory dir = writer.getDirectory();
74 IndexReader reader = IndexReader.open(dir, false);
77 dir.close();
85 MockDirectoryWrapper dir
[all...]
H A DTestSizeBoundedForceMerge.java48 Directory dir = new RAMDirectory();
52 IndexWriter writer = new IndexWriter(dir, conf);
61 sis.read(dir);
69 writer = new IndexWriter(dir, conf);
75 sis.read(dir);
81 Directory dir = new RAMDirectory();
85 IndexWriter writer = new IndexWriter(dir, conf);
102 writer = new IndexWriter(dir, conf);
108 sis.read(dir);
113 Directory dir
[all...]
H A DTestSnapshotDeletionPolicy.java57 protected void checkSnapshotExists(Directory dir, IndexCommit c) throws Exception { argument
59 assertTrue("segments file not found in directory: " + segFileName, dir.fileExists(segFileName));
90 protected void assertSnapshotExists(Directory dir, SnapshotDeletionPolicy sdp, int numSnapshots) throws Exception { argument
94 checkSnapshotExists(dir, snapshot);
105 private void runTest(Random random, Directory dir) throws Exception { argument
110 final IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
150 backupIndex(dir, dp);
166 TestIndexWriter.assertNoUnreferencedFiles(dir, "some files were not deleted but should have been");
175 public void backupIndex(Directory dir, SnapshotDeletionPolicy dp) throws Exception { argument
178 copyFiles(dir, d
187 copyFiles(Directory dir, IndexCommit cp) argument
206 readFile(Directory dir, String name) argument
[all...]
H A DTestIndexFileDeleter.java42 MockDirectoryWrapper dir = newDirectory();
43 dir.setPreventDoubleWrite(false);
52 dir,
71 IndexReader reader = IndexReader.open(dir, false);
82 String[] files = dir.listAll();
96 CompoundFileReader cfsReader = new CompoundFileReader(dir, "_2.cfs");
114 copyFile(dir, "_2_1." + normSuffix, "_2_2." + normSuffix);
119 copyFile(dir, "_2_1." + normSuffix, "_2_2.f" + contentFieldIndex);
124 copyFile(dir, "_2_1." + normSuffix, "_1_1." + normSuffix);
129 copyFile(dir, "_2_
220 copyFile(Directory dir, String src, String dest) argument
[all...]
H A DTestIndexWriterForceMerge.java35 MockDirectoryWrapper dir = newDirectory();
44 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
53 sis.read(dir);
58 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT,
64 sis.read(dir);
72 dir.close();
76 MockDirectoryWrapper dir = newDirectory();
84 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
97 sis.read(dir);
106 sis.read(dir);
[all...]
H A DTestIndexReaderDelete.java37 Directory dir = newDirectory();
46 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random)).setOpenMode(OpenMode.CREATE));
59 IndexReader reader1 = IndexReader.open(dir, false);
67 IndexReader reader2 = IndexReader.open(dir, false);
108 reader1 = IndexReader.open(dir, false);
126 reader2 = IndexReader.open(dir, false);
132 dir.close();
136 //Directory dir = new RAMDirectory();
137 Directory dir = newDirectory();
143 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfi
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/index/
H A DTestCrash.java37 private IndexWriter initIndex(Random random, MockDirectoryWrapper dir, boolean initialCommit) throws IOException { argument
38 dir.setLockFactory(NoLockFactory.getNoLockFactory());
40 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
59 final MockDirectoryWrapper dir = (MockDirectoryWrapper) writer.getDirectory();
62 dir.crash();
64 dir.clearCrash();
72 Directory dir = writer.getDirectory();
74 IndexReader reader = IndexReader.open(dir, false);
77 dir.close();
85 MockDirectoryWrapper dir
[all...]
H A DTestSizeBoundedForceMerge.java48 Directory dir = new RAMDirectory();
52 IndexWriter writer = new IndexWriter(dir, conf);
61 sis.read(dir);
69 writer = new IndexWriter(dir, conf);
75 sis.read(dir);
81 Directory dir = new RAMDirectory();
85 IndexWriter writer = new IndexWriter(dir, conf);
102 writer = new IndexWriter(dir, conf);
108 sis.read(dir);
113 Directory dir
[all...]
H A DTestSnapshotDeletionPolicy.java57 protected void checkSnapshotExists(Directory dir, IndexCommit c) throws Exception { argument
59 assertTrue("segments file not found in directory: " + segFileName, dir.fileExists(segFileName));
90 protected void assertSnapshotExists(Directory dir, SnapshotDeletionPolicy sdp, int numSnapshots) throws Exception { argument
94 checkSnapshotExists(dir, snapshot);
105 private void runTest(Random random, Directory dir) throws Exception { argument
110 final IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
150 backupIndex(dir, dp);
166 TestIndexWriter.assertNoUnreferencedFiles(dir, "some files were not deleted but should have been");
175 public void backupIndex(Directory dir, SnapshotDeletionPolicy dp) throws Exception { argument
178 copyFiles(dir, d
187 copyFiles(Directory dir, IndexCommit cp) argument
206 readFile(Directory dir, String name) argument
[all...]
H A DTestIndexFileDeleter.java42 MockDirectoryWrapper dir = newDirectory();
43 dir.setPreventDoubleWrite(false);
52 dir,
71 IndexReader reader = IndexReader.open(dir, false);
82 String[] files = dir.listAll();
96 CompoundFileReader cfsReader = new CompoundFileReader(dir, "_2.cfs");
114 copyFile(dir, "_2_1." + normSuffix, "_2_2." + normSuffix);
119 copyFile(dir, "_2_1." + normSuffix, "_2_2.f" + contentFieldIndex);
124 copyFile(dir, "_2_1." + normSuffix, "_1_1." + normSuffix);
129 copyFile(dir, "_2_
220 copyFile(Directory dir, String src, String dest) argument
[all...]
H A DTestIndexWriterForceMerge.java35 MockDirectoryWrapper dir = newDirectory();
44 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
53 sis.read(dir);
58 writer = new IndexWriter(dir, newIndexWriterConfig( TEST_VERSION_CURRENT,
64 sis.read(dir);
72 dir.close();
76 MockDirectoryWrapper dir = newDirectory();
84 IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(
97 sis.read(dir);
106 sis.read(dir);
[all...]
/lucene-3.6.0/lucene/contrib/facet/src/test/org/apache/lucene/facet/taxonomy/directory/
H A DTestDirectoryTaxonomyReader.java40 Directory dir = newDirectory();
41 DirectoryTaxonomyWriter ltw = new DirectoryTaxonomyWriter(dir);
45 DirectoryTaxonomyReader ltr = new DirectoryTaxonomyReader(dir);
53 dir.close();
58 Directory dir = newDirectory();
59 DirectoryTaxonomyWriter ltw = new DirectoryTaxonomyWriter(dir);
63 DirectoryTaxonomyReader ltr = new DirectoryTaxonomyReader(dir);
67 dir.close();
76 Directory dir = null;
81 dir
[all...]
H A DTestDirectoryTaxonomyWriter.java57 Directory dir = newDirectory();
58 DirectoryTaxonomyWriter ltw = new DirectoryTaxonomyWriter(dir, OpenMode.CREATE_OR_APPEND, new NoOpCache());
59 assertFalse(IndexReader.indexExists(dir));
63 IndexReader r = IndexReader.open(dir);
67 dir.close();
73 Directory dir = newDirectory();
74 DirectoryTaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(dir, OpenMode.CREATE_OR_APPEND, new NoOpCache());
81 IndexReader r = IndexReader.open(dir);
92 taxoWriter = new DirectoryTaxonomyWriter(dir, OpenMode.CREATE_OR_APPEND, new NoOpCache());
99 r = IndexReader.open(dir);
[all...]
/lucene-3.6.0/lucene/core/src/test/org/apache/lucene/store/
H A DTestDirectory.java31 for (Directory dir : dirs) {
32 dir.close();
34 dir.createOutput("test");
55 Directory dir = dirs[i];
56 dir.ensureOpen();
59 IndexOutput out = dir.createOutput(fname);
78 // delete with a different dir
86 Lock lock = dir.makeLock(lockname);
101 // now lock with different dir
108 Directory dir
141 checkDirectoryFilter(Directory dir) argument
[all...]
/lucene-3.6.0/lucene/backwards/src/test/org/apache/lucene/store/
H A DTestDirectory.java31 for (Directory dir : dirs) {
32 dir.close();
34 dir.createOutput("test");
55 Directory dir = dirs[i];
56 dir.ensureOpen();
59 IndexOutput out = dir.createOutput(fname);
78 // delete with a different dir
86 Lock lock = dir.makeLock(lockname);
101 // now lock with different dir
108 Directory dir
141 checkDirectoryFilter(Directory dir) argument
[all...]
/lucene-3.6.0/solr/test-framework/src/java/org/apache/solr/core/
H A DMockDirectoryFactory.java34 MockDirectoryWrapper dir = LuceneTestCase.newFSDirectory(new File(path));
39 dir.setAssertNoUnrefencedFilesOnClose(false);
40 return dir;
/lucene-3.6.0/lucene/core/src/java/org/apache/lucene/index/
H A DIndexUpgrader.java57 System.err.println(" java " + IndexUpgrader.class.getName() + " [-delete-prior-commits] [-verbose] [-dir-impl X] indexDir");
63 " implementation through the -dir-impl option to force its use. If no package is specified the "
84 } else if ("-dir-impl".equals(arg)) {
86 System.out.println("ERROR: missing value for -dir-impl option");
100 Directory dir = null;
102 dir = FSDirectory.open(new File(path));
104 dir = CommandLineUtil.newFSDirectory(dirImpl, new File(path));
106 new IndexUpgrader(dir, Version.LUCENE_CURRENT, out, deletePriorCommits).upgrade();
109 private final Directory dir; field in class:IndexUpgrader
116 public IndexUpgrader(Directory dir, Versio argument
123 IndexUpgrader(Directory dir, Version matchVersion, PrintStream infoStream, boolean deletePriorCommits) argument
130 IndexUpgrader(Directory dir, IndexWriterConfig iwc, PrintStream infoStream, boolean deletePriorCommits) argument
[all...]

Completed in 29 milliseconds

1234567891011>>