Revision: 17256
http://sourceforge.net/p/gate/code/17256
Author: valyt
Date: 2014-01-29 15:30:15 +0000 (Wed, 29 Jan 2014)
Log Message:
-----------
Scratch
Modified Paths:
--------------
mimir/branches/5.0/mimir-test/src/gate/mimir/test/Scratch.java
Modified: mimir/branches/5.0/mimir-test/src/gate/mimir/test/Scratch.java
===================================================================
--- mimir/branches/5.0/mimir-test/src/gate/mimir/test/Scratch.java
2014-01-29 15:29:10 UTC (rev 17255)
+++ mimir/branches/5.0/mimir-test/src/gate/mimir/test/Scratch.java
2014-01-29 15:30:15 UTC (rev 17256)
@@ -81,11 +81,11 @@
public class Scratch {
public static void main (String[] args) throws Exception {
- mainIndexer5(args);
+// mainIndexer5(args);
// mainSimple(args);
-// mainDirectIndexes(args);
+ mainDirectIndexes(args);
// mainBuildDirectIndex(args);
// mainQueryIndex(args);
// mainRemote(args);
@@ -248,7 +248,7 @@
Enumeration<? extends ZipEntry> entries = zip.entries();
int copies = 10;
- boolean compress = false;
+ boolean compress = true;
ResourceData docRd =
Gate.getCreoleRegister().get(DocumentImpl.class.getName());
while(entries.hasMoreElements()) {
ZipEntry entry = entries.nextElement();
@@ -274,7 +274,7 @@
mainIndex.requestDumpToDisk();
mainIndex.requestCompactIndex();
}
-
+ mainIndex.compactDocumentCollection();
mainIndex.close();
}
@@ -503,8 +503,10 @@
Gate.getCreoleRegister().registerDirectories(
new File("../plugins/sparql").toURI().toURL());
- QueryEngine qEngine = new MimirIndex(new File(args[0])).getQueryEngine();
+ MimirIndex mainIndex = new MimirIndex(new File(args[0]));
+ QueryEngine qEngine = mainIndex.getQueryEngine();
+
TermsQuery query = null;
// query = new DocumentTermsQuery("root", IndexType.TOKENS,
@@ -538,7 +540,7 @@
System.out.println("\n=======================================");
- qEngine.close();
+ mainIndex.close();
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs