You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2017/10/12 17:57:43 UTC
[19/50] [abbrv] oodt git commit: fix some counts
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/2820d5d1
Tree: http://git-wip-us.apache.org/repos/asf/oodt/tree/2820d5d1
Diff: http://git-wip-us.apache.org/repos/asf/oodt/diff/2820d5d1
Branch: refs/heads/master
Commit: 2820d5d120ef4bb50f128c45cc16cc651e90ba63
Parents: d1b0a7b
Author: Tom Barber <to...@analytical-labs.com>
Authored: Fri Jul 8 22:21:07 2016 +0100
Committer: Lewis John McGibbney <le...@gmail.com>
Committed: Thu Mar 9 21:35:11 2017 -0800
----------------------------------------------------------------------
.../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/2820d5d1/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;
}