it.unimi.dsi.mg4j.query

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 » Search Engine » mg4j » it.unimi.dsi.mg4j.query 
it.unimi.dsi.mg4j.query
MG4J: Managing Gigabytes for Java

User interfaces for querying indices.

Most classes in this package are just suggestions or experiments. The {@link it.unimi.dsi.mg4j.query.Query} tool lets you query one or more indices on the command line or possibly using a browser. The displayed results can be linked to actual data (files, collections, etc.) using items such as {@link it.unimi.dsi.mg4j.query.GenericItem} or {@link it.unimi.dsi.mg4j.query.FileSystemItem}.

Java Source File NameTypeComment
BrowseItem.javaClass An instance of this class is used to pack the results gathered by it.unimi.dsi.mg4j.query.QueryServlet in such a way that they are easily accessible from the Velocity Template Language.
FileSystemItem.javaClass An item serving a file from the file system.

This kind of it.unimi.dsi.mg4j.query.QueryServlet item will load into the browser the file specified by the parameter uri.

GenericItem.javaClass An generic item, displaying all document fields.

This kind of it.unimi.dsi.mg4j.query.QueryServlet item will display each field of a document inside a FIELDSET element.

HelpPage.javaClass The help page.
HttpFileServer.javaClass A minimal, singleton server serving the whole filesystem.

For security reasons, some browsers (notably Firefox at the time of this writing) do not serve file: content from a non-file: page.

HttpQueryServer.javaClass A very basic HTTP server answering queries.

The main method of this class starts a very basic HTTP server answering queries. If a matching document collection is provided, the server will also display some intervals satisfying the queries.

Queries are served by the it.unimi.dsi.mg4j.query.QueryServlet ; by default, the servlet listen on port 4242, and the servlet is deployed under the path /Query.

InputStreamItem.javaClass An item serving a raw input stream from the document collection.

This kind of it.unimi.dsi.mg4j.query.QueryServlet item will load into the browser the stream returned by the document collection for the given document.

IntervalSelector.javaClass A strategy for selecting reasonable intervals to be shown to the user.

MG4J returns for each query and each document a list of minimal intervals satisfying the query. Due to overlaps and long intervals, this list is not always the best way to show the result of a query to the user.

Marker.javaInterface A strategy for marking words.

When showing snippets to the user, it is necessary to highlight intervals, and to mark the start and the end of an excerpt.

MarkingMutableString.javaClass A mutable string with a special method to append text that should be marked.

A marking mutable string can mark several fields (which will often correspond to indexed fields). Each time you , you pass some intervals to be marked.

Query.javaClass A command-line interpreter to query indices.

This class can be used to start a from the command line.

QueryEngine.javaClass An engine that takes a query and returns results, using a programmable set of scorers and policies.

This class embodies most of the work that must be done when answering a query. Basically, QueryEngine.process(String,int,int,ObjectArrayList) process(query,offset,length,results) takes query, parses it, turns it into a document iterator, scans the results, and deposits length results starting at offset into the list results.

There however several additional features available.

QueryServlet.javaClass A query servlet.

This class provides a basic servlet for searching a collection. It expects some data (a collection, an index map and a path) in the javax.servlet.ServletContext (see the code for QueryServlet.init() ).

ResultItem.javaClass An instance of this class is used to pack the results gathered by it.unimi.dsi.mg4j.query.QueryServlet in such a way that they are easily accessible from the Velocity Template Language.
SelectedInterval.javaClass An interval selected for display.
TextMarker.javaClass A marker for text/HTML output.

This class has few instances, which are accessible by means of final static fields.

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