<NME> ESIndexTest.java
<BEF> ADDFILE
<MSG> move class FeatureType to package dataset
in ESIndex:
    rename type to documentType;
    add field bodyField;
    rename all methods which only deal with terms
    remove methods getDocsAndTF, getTermsAndTfidfs
    rename getNgramInfo to getTermStats
    change implementation of fetchNumDocs()
in ESIndexBuilder:
    rename type to documentType;
    add field bodyField;
add class TermStat
remove class Feature
remove class Ngram
remove class NgramInfo
add class FocusSet

<DFF> @@ -0,0 +1,50 @@
+package edu.neu.ccs.pyramid.elasticsearch;
+
+import static org.junit.Assert.*;
+
+public class ESIndexTest {
+    public static void main(String[] args) throws Exception{
+        test5();
+
+    }
+
+    static void test1() throws Exception{
+        ESIndex index = ESIndexBuilder.builder().setClientType("node").setIndexName("cnn")
+                .build();
+        System.out.println(index.getNumDocs());
+        index.close();
+    }
+
+    static void test2() throws Exception{
+        ESIndex index = ESIndexBuilder.builder().setClientType("node").setIndexName("cnn")
+                .build();
+        System.out.println(index.getTerms("0"));
+        index.close();
+    }
+
+    static void test3() throws Exception{
+        ESIndex index = ESIndexBuilder.builder().setClientType("node").setIndexName("cnn")
+                .build();
+        System.out.println(index.getDocs("possibl").size());
+        index.close();
+    }
+
+    static void test4() throws Exception{
+        ESIndex index = ESIndexBuilder.builder().setClientType("node").setIndexName("cnn")
+                .build();
+        System.out.println(index.getLabel("0"));
+        System.out.println(index.getExtLabel("0"));
+
+        index.close();
+    }
+
+    static void test5() throws Exception{
+        ESIndex index = ESIndexBuilder.builder().setClientType("node").setIndexName("cnn")
+                .build();
+        System.out.println(index.getTermStats("0"));
+
+
+        index.close();
+    }
+
+}
\ No newline at end of file

move class FeatureType to package dataset in ESIndex:     rename type to documentType;     add field bodyField;     rename all methods which only deal with terms     remove methods getDocsAndTF, getTermsAndTfidfs     rename getNgramInfo to getTermStats     change implementation of fetchNumDocs() in ESIndexBuilder:     rename type to documentType;     add field bodyField; add class TermStat remove class Feature remove class Ngram remove class NgramInfo add class FocusSet