Repository: oodt
Updated Branches:
  refs/heads/lucene 4703f6ff9 -> bdca12103


fix some counts


Project: http://git-wip-us.apache.org/repos/asf/oodt/repo
Commit: http://git-wip-us.apache.org/repos/asf/oodt/commit/bdca1210
Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/bdca1210
Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/bdca1210

Branch: refs/heads/lucene
Commit: bdca12103cd865c16a3a2ffa073077b812a8c556
Parents: 4703f6f
Author: Tom Barber <[email protected]>
Authored: Fri Jul 8 22:21:07 2016 +0100
Committer: Tom Barber <[email protected]>
Committed: Fri Jul 8 22:21:07 2016 +0100

----------------------------------------------------------------------
 .../apache/oodt/cas/filemgr/catalog/LuceneCatalog.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oodt/blob/bdca1210/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java
----------------------------------------------------------------------
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 0a5564b..b54e8f7 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
@@ -1179,22 +1179,22 @@ public class LuceneCatalog implements Catalog {
         doc.add(new Field("product_id", product.getProductId(),
                 StringField.TYPE_STORED));
         doc.add(new Field("product_name", product.getProductName(),
-                TextField.TYPE_STORED));
+                StringField.TYPE_STORED));
         doc.add(new Field("product_structure", product.getProductStructure(),
-                TextField.TYPE_STORED));
+                StringField.TYPE_STORED));
         doc
                 .add(new Field("product_transfer_status", product
-                        .getTransferStatus(), TextField.TYPE_STORED));
+                        .getTransferStatus(), StringField.TYPE_STORED));
 
         // product type
         doc
                 .add(new Field("product_type_id", product.getProductType()
                         .getProductTypeId(), StringField.TYPE_STORED));
         doc.add(new Field("product_type_name", product.getProductType()
-                .getName(), TextField.TYPE_STORED));
+                .getName(), StringField.TYPE_STORED));
         doc.add(new Field("product_type_desc", product.getProductType()
                 .getDescription() != null ? product.getProductType()
-                .getDescription() : "", TextField.TYPE_STORED));
+                .getDescription() : "", StringField.TYPE_STORED));
         doc.add(new Field("product_type_repoPath", product.getProductType()
                 .getProductRepositoryPath() != null ? product.getProductType()
                 .getProductRepositoryPath() : "", StringField.TYPE_STORED));
@@ -1260,7 +1260,7 @@ public class LuceneCatalog implements Catalog {
 
         // add special field for all products
         // then can use that field to retrieve back all products
-        doc.add(new Field("myfield", "myvalue", TextField.TYPE_STORED));
+        doc.add(new Field("myfield", "myvalue", StringField.TYPE_STORED));
 
         return doc;
     }

Reply via email to