Java Doc for MemoryIndexTest.java in  » Net » lucene-connector » org » apache » lucene » index » memory » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » lucene connector » org.apache.lucene.index.memory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lucene.index.memory.MemoryIndexTest

MemoryIndexTest
public class MemoryIndexTest extends TestCase (Code)
Verifies that Lucene MemoryIndex and RAMDirectory have the same behaviour, returning the same results for any given query. Runs a set of queries against a set of files and compares results for identity. Can also be used as a simple benchmark.

Example usage:

 cd lucene-svn
 java -server -cp ~/unix/java/share/misc/junit/junit.jar:build/classes:build/lucene-core-2.1-dev.jar:build/contrib/memory/classes/test:build/contrib/memory/classes/java org.apache.lucene.index.memory.MemoryIndexTest 1 1 memram @contrib/memory/src/test/org/apache/lucene/index/memory/testqueries.txt *.txt *.html *.xml xdocs/*.xml src/test/org/apache/lucene/queryParser/*.java contrib/memory/src/java/org/apache/lucene/index/memory/*.java
 
where testqueries.txt is a file with one query per line, such as:
 #
 # queries extracted from TestQueryParser.java
 #
 Apache
 Apach~ AND Copy*
 a AND b
 (a AND b)
 c OR (a AND b)
 a AND NOT b
 a AND -b
 a AND !b
 a && b
 a && ! b
 a OR b
 a || b
 a OR !b
 a OR ! b
 a OR -b
 +term -term term
 foo:term AND field:anotherTerm
 term AND "phrase phrase"
 "hello there"
 germ term^2.0
 (term)^2.0
 (germ term)^2.0
 term^2.0
 term^2
 "germ term"^2.0
 "term germ"^2
 (foo OR bar) AND (baz OR boo)
 ((a OR b) AND NOT c) OR d
 +(apple "steve jobs") -(foo bar baz)
 +title:(dog OR cat) -author:"bob dole"
 a&b
 a&&b
 .NET
 "term germ"~2
 "term germ"~2 flork
 "term"~2
 "~2 germ"
 "term germ"~2^2
 3
 term 1.0 1 2
 term term1 term2
 term*
 term*^2
 term~
 term~0.7
 term~^2
 term^2~
 term*germ
 term*germ^3
 term*
 Term*
 TERM*
 term*
 Term*
 TERM*
 // Then 'full' wildcard queries:
 te?m
 Te?m
 TE?M
 Te?m*gerM
 te?m
 Te?m
 TE?M
 Te?m*gerM
 term term term
 term +stop term
 term -stop term
 drop AND stop AND roll
 term phrase term
 term AND NOT phrase term
 stop
 [ a TO c]
 [ a TO c ]
 { a TO c}
 { a TO c }
 { a TO c }^2.0
 [ a TO c] OR bar
 [ a TO c] AND bar
 ( bar blar { a TO c}) 
 gack ( bar blar { a TO c}) 
 +weltbank +worlbank
 +weltbank\n+worlbank
 weltbank \n+worlbank
 weltbank \n +worlbank
 +weltbank\r+worlbank
 weltbank \r+worlbank
 weltbank \r +worlbank
 +weltbank\r\n+worlbank
 weltbank \r\n+worlbank
 weltbank \r\n +worlbank
 weltbank \r \n +worlbank
 +weltbank\t+worlbank
 weltbank \t+worlbank
 weltbank \t +worlbank
 term term term
 term +term term
 term term +term
 term +term +term
 -term term term
 on^1.0
 "hello"^2.0
 hello^2.0
 "on"^1.0
 the^3
 

author:
   whoschek.AT.lbl.DOT.gov


Field Summary
public  StringfileDir
    


Method Summary
static  String[]listFiles(String[] fileNames)
    
public static  voidmain(String[] args)
    
public  voidsetUp()
    
public  voidtestMany()
    

Field Detail
fileDir
public String fileDir(Code)





Method Detail
listFiles
static String[] listFiles(String[] fileNames)(Code)
returns all files matching the given file name patterns (quick n'dirty)



main
public static void main(String[] args) throws Throwable(Code)
Runs the tests and/or benchmark



setUp
public void setUp()(Code)



testMany
public void testMany() throws Throwable(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.