Author: hardy.ferentschik
Date: 2007-07-24 05:45:37 -0400 (Tue, 24 Jul 2007)
New Revision: 12803
Modified:
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSMasterDirectoryProvider.java
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSSlaveDirectoryProvider.java
Log:
HSEARCH-67.
Removed the 'create' flag in the call to getDirectory() call. This call is
deprecated.
Modified:
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSMasterDirectoryProvider.java
===================================================================
---
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSMasterDirectoryProvider.java 2007-07-24
09:44:20 UTC (rev 12802)
+++
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSMasterDirectoryProvider.java 2007-07-24
09:45:37 UTC (rev 12803)
@@ -58,7 +58,7 @@
log.debug( "Index directory '" + indexName + "' will be
initialized");
indexDir.mkdir();
}
- directory = FSDirectory.getDirectory( indexName, create );
+ directory = FSDirectory.getDirectory( indexName);
if ( create ) {
IndexWriter iw = new IndexWriter( directory, new StandardAnalyzer(), create );
iw.close();
Modified:
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSSlaveDirectoryProvider.java
===================================================================
---
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSSlaveDirectoryProvider.java 2007-07-24
09:44:20 UTC (rev 12802)
+++
trunk/HibernateExt/search/src/java/org/hibernate/search/store/FSSlaveDirectoryProvider.java 2007-07-24
09:45:37 UTC (rev 12803)
@@ -64,7 +64,7 @@
File subDir = new File( indexName, "1" );
create = ! subDir.exists();
- directory1 = FSDirectory.getDirectory( subDir.getCanonicalPath(), create );
+ directory1 = FSDirectory.getDirectory( subDir.getCanonicalPath());
if ( create ) {
IndexWriter iw = new IndexWriter( directory1, new StandardAnalyzer(), create );
iw.close();
@@ -72,7 +72,7 @@
subDir = new File( indexName, "2" );
create = ! subDir.exists();
- directory2 = FSDirectory.getDirectory( subDir.getCanonicalPath(), create );
+ directory2 = FSDirectory.getDirectory( subDir.getCanonicalPath());
if ( create ) {
IndexWriter iw = new IndexWriter( directory2, new StandardAnalyzer(), create );
iw.close();
Show replies by date