This is an automated email from the ASF dual-hosted git repository. mattmann pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/oodt.git
commit edd681494c0d39a0f3f58d1a948ff7a78116582d Author: Tom Barber <t...@spicule.co.uk> AuthorDate: Sat Jul 14 21:25:40 2018 +0100 revert fm --- .../org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java index 2dd1ffd..e57be73 100644 --- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java +++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java @@ -18,13 +18,15 @@ package org.apache.oodt.cas.filemgr.catalog; import org.apache.lucene.analysis.standard.StandardAnalyzer; -import org.apache.lucene.document.*; +import org.apache.lucene.document.Document; +import org.apache.lucene.document.Field; +import org.apache.lucene.document.SortedDocValuesField; +import org.apache.lucene.document.StringField; import org.apache.lucene.index.*; import org.apache.lucene.search.*; import org.apache.lucene.store.Directory; -import org.apache.lucene.store.NIOFSDirectory; +import org.apache.lucene.store.FSDirectory; import org.apache.lucene.util.BytesRef; -import org.apache.lucene.util.Version; import org.apache.oodt.cas.filemgr.structs.*; import org.apache.oodt.cas.filemgr.structs.Query; import org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException; @@ -32,17 +34,13 @@ import org.apache.oodt.cas.filemgr.structs.exceptions.ValidationLayerException; import org.apache.oodt.cas.filemgr.validation.ValidationLayer; import org.apache.oodt.cas.metadata.Metadata; import org.apache.oodt.commons.pagination.PaginationUtils; -import org.apache.poi.hssf.record.formula.functions.Text; -import org.apache.solr.schema.FieldType; import org.safehaus.uuid.UUID; import org.safehaus.uuid.UUIDGenerator; import org.slf4j.LoggerFactory; import java.io.File; import java.io.IOException; -import java.nio.file.Paths; import java.util.ArrayList; -import java.util.Enumeration; import java.util.List; import java.util.Vector; import java.util.concurrent.ConcurrentHashMap; @@ -136,7 +134,7 @@ public class LuceneCatalog implements Catalog { this.mergeFactor = mergeFactor; try { - indexDir = NIOFSDirectory.open(new File( indexFilePath ).toPath()); + indexDir = FSDirectory.open(new File( indexFilePath ).toPath()); } catch (IOException e) { e.printStackTrace(); }