[MKSearch-dev] Week 42 round up

Phil Shaw phil at mkdoc.com
Fri Jul 29 18:41:22 BST 2005


The query system is now looking and working like a proper search 
engine. I have standard title, summary, link results listings working 
for all output formats, and added RSS results today. I'll send some 
screen shots next week. The next job is paging results.

Best regards,

Phil


Monday
~~~~~~
Introduced a runtime exception, ApplicationContextException, to deal 
properly with configuration problems with store manager types. Added 
the new exception to the AbstractDatabaseStoreManager and 
AbstractFileStoreManager types and amended unit tests as necessary. 
Made various corrections and additions to JavaDoc for other    
recent amendments.

Corrected problem with duplicate primary search field by completing 
the switch to SchemaProperty references for form fields. Removed the 
"Query results" heading from the XhtmlResultRenderer to allow custom 
results headings.  

Added getTitleProperty and getSummaryProperty methods to the 
ApplicationProfile interface and concrete implementations to 
DublinCoreProfile and UKeGMSProfile.  

Tuesday
~~~~~~~
Added getQueryUri, hashCode and equals methods to the Query interface 
so that it can be used as a key for cached results. Made a basic 
implementation in SimpleQuery and adapted ServletQueryBuilder to it. 
Modified TextResultRenderer and XhtmlResultRenderer to take a Query 
in their constructors. Amalgamated all methods from SeRQLQueryBuilder 
into AbstractQueryBuilder and moved several methods back from 
ServletQueryBuilder to the superclass. Created a first draft 
QueryFactory by extracting the static getQueryBuilder and 
getResultRenderer methods from AbstractMKDocServlet and extracted the 
relevant test cases into a new test suite.  

Wednesday
~~~~~~~~~
Added optional expressions to the AbstractQueryBuilder so that item 
title and summary details can be extracted as a standard part of the 
query results. Removed the addVariable(String) method and 
incorporated equivalent calls within other relevant methods. 
Corrected LIKE statements to use double quotes. Removed guard clauses 
from the private append list method. Added calls to the new 
addTitleExpression and addSubjectExpression methods to the 
ServletQueryBuilder class. Added an query echo checkbox to the 
QueryBuilderTag for debugging SeRQL queries. Extended test cases to  
cover new features.

Thursday
~~~~~~~~
Added standard item title and item summary references and accessors 
to the QueryResult interface and the StoreQueryResult implementation. 
Adapted TextResultRenderer and XhtmlResultRenderer to use the new 
accessor methods. Added a reset link to the query builder form. Wrote 
a query syntax and help page with new CSS for a global navigation 
menu.

Friday
~~~~~~
Created an RssResultRenderer and modified methods in various classes 
to check for this type: a new clause in the getResultRenderer method 
of QueryFactory, and new clauses in the init and dispatchQuery 
methods of HttpQuery. Also modified the parseParameter method of 
ServletQueryBuilder to assemble a query URI value to pass to the 
output Query, for use in the RSS channel element. Created a simple 
RSSQueryResult.jsp page and added it to the Tomcat deployment 
descriptor.

--
MKSearch (alpha)

<URL:http://www.mksearch.mkdoc.org/>

Free, open source metadata search engine with RDF storage and query.


More information about the MKSearch-dev mailing list