Java Doc for TestExplanations.java in  » Net » lucene-connector » org » apache » lucene » search » 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.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.lucene.util.LuceneTestCase
   org.apache.lucene.search.TestExplanations

All known Subclasses:   org.apache.lucene.search.TestComplexExplanations,  org.apache.lucene.search.TestSimpleExplanations,  org.apache.lucene.search.spans.TestSpanExplanations,
TestExplanations
public class TestExplanations extends LuceneTestCase (Code)
Tests primative queries (ie: that rewrite to themselves) to insure they match the expected set of docs, and that the score of each match is equal to the value of the scores explanation.

The assumption is that if all of the "primative" queries work well, then anythingthat rewrites to a primative will work well also.


See Also:    "Subclasses for actual tests"

Inner Class :public static class ItemizedFilter extends Filter

Field Summary
final public static  StringFIELD
    
protected  String[]docFields
    
final public static  QueryParserqp
    
protected  IndexSearchersearcher
    


Method Summary
public  voidbqtest(Query q, int[] expDocNrs)
    
public  voidbqtest(String queryText, int[] expDocNrs)
    
public  QuerymakeQuery(String queryText)
    
public  QueryoptB(String q)
    
public  QueryoptB(Query q)
    
public  voidqtest(String queryText, int[] expDocNrs)
    
public  voidqtest(Query q, int[] expDocNrs)
    
public  QueryreqB(String q)
    
public  QueryreqB(Query q)
    
public  voidsetUp()
    
public  SpanFirstQuerysf(String s, int b)
    
public  SpanNearQuerysnear(String s, String e, int slop, boolean inOrder)
    
public  SpanNearQuerysnear(SpanQuery s, SpanQuery e, int slop, boolean inOrder)
    
public  SpanNearQuerysnear(String s, String m, String e, int slop, boolean inOrder)
    
public  SpanNearQuerysnear(SpanQuery s, SpanQuery m, SpanQuery e, int slop, boolean inOrder)
    
public  SpanNotQuerysnot(SpanQuery i, SpanQuery e)
    
public  SpanOrQuerysor(String s, String e)
    
public  SpanOrQuerysor(SpanQuery s, SpanQuery e)
    
public  SpanOrQuerysor(String s, String m, String e)
    
public  SpanOrQuerysor(SpanQuery s, SpanQuery m, SpanQuery e)
    
public  SpanTermQueryst(String s)
    
public static  Term[]ta(String[] s)
    
public  voidtearDown()
    
public  voidtestNoop()
     Placeholder: JUnit freaks if you don't have one test ...

Field Detail
FIELD
final public static String FIELD(Code)



docFields
protected String[] docFields(Code)



qp
final public static QueryParser qp(Code)



searcher
protected IndexSearcher searcher(Code)





Method Detail
bqtest
public void bqtest(Query q, int[] expDocNrs) throws Exception(Code)
Tests a query using qtest after wrapping it with both optB and reqB
See Also:   TestExplanations.qtest
See Also:   TestExplanations.reqB
See Also:   TestExplanations.optB



bqtest
public void bqtest(String queryText, int[] expDocNrs) throws Exception(Code)
Tests a query using qtest after wrapping it with both optB and reqB
See Also:   TestExplanations.qtest
See Also:   TestExplanations.reqB
See Also:   TestExplanations.optB



makeQuery
public Query makeQuery(String queryText) throws ParseException(Code)



optB
public Query optB(String q) throws Exception(Code)
MACRO: Wraps a Query in a BooleanQuery so that it is optional, along with a second prohibited clause which will never match anything



optB
public Query optB(Query q) throws Exception(Code)
MACRO: Wraps a Query in a BooleanQuery so that it is optional, along with a second prohibited clause which will never match anything



qtest
public void qtest(String queryText, int[] expDocNrs) throws Exception(Code)
check the expDocNrs first, then check the query (and the explanations)



qtest
public void qtest(Query q, int[] expDocNrs) throws Exception(Code)
check the expDocNrs first, then check the query (and the explanations)



reqB
public Query reqB(String q) throws Exception(Code)
MACRO: Wraps a Query in a BooleanQuery so that it is required, along with a second optional clause which will match everything



reqB
public Query reqB(Query q) throws Exception(Code)
MACRO: Wraps a Query in a BooleanQuery so that it is required, along with a second optional clause which will match everything



setUp
public void setUp() throws Exception(Code)



sf
public SpanFirstQuery sf(String s, int b)(Code)
MACRO for SpanFirst(SpanTermQuery)



snear
public SpanNearQuery snear(String s, String e, int slop, boolean inOrder)(Code)
MACRO for SpanNearQuery containing two SpanTerm queries



snear
public SpanNearQuery snear(SpanQuery s, SpanQuery e, int slop, boolean inOrder)(Code)
MACRO for SpanNearQuery containing two SpanQueries



snear
public SpanNearQuery snear(String s, String m, String e, int slop, boolean inOrder)(Code)
MACRO for SpanNearQuery containing three SpanTerm queries



snear
public SpanNearQuery snear(SpanQuery s, SpanQuery m, SpanQuery e, int slop, boolean inOrder)(Code)
MACRO for SpanNearQuery containing three SpanQueries



snot
public SpanNotQuery snot(SpanQuery i, SpanQuery e)(Code)
MACRO for SpanNotQuery



sor
public SpanOrQuery sor(String s, String e)(Code)
MACRO for SpanOrQuery containing two SpanTerm queries



sor
public SpanOrQuery sor(SpanQuery s, SpanQuery e)(Code)
MACRO for SpanOrQuery containing two SpanQueries



sor
public SpanOrQuery sor(String s, String m, String e)(Code)
MACRO for SpanOrQuery containing three SpanTerm queries



sor
public SpanOrQuery sor(SpanQuery s, SpanQuery m, SpanQuery e)(Code)
MACRO for SpanOrQuery containing two SpanQueries



st
public SpanTermQuery st(String s)(Code)
MACRO for SpanTermQuery



ta
public static Term[] ta(String[] s)(Code)
helper for generating MultiPhraseQueries



tearDown
public void tearDown() throws Exception(Code)



testNoop
public void testNoop()(Code)
Placeholder: JUnit freaks if you don't have one test ... making class abstract doesn't help



Methods inherited from org.apache.lucene.util.LuceneTestCase
protected void setUp() throws Exception(Code)(Java Doc)
protected void tearDown() throws Exception(Code)(Java Doc)

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