I'm +1 on this proposal. In regards to API change, since we have a production release of J1, we should probably go thru deprecation process when changing APIs. However, if we don't get any negative votes, I'm fine with the change.
Best regards, Mark Orciuch - [EMAIL PROTECTED] Jakarta Jetspeed - Enterprise Portal in Java http://jakarta.apache.org/jetspeed/ > -----Original Message----- > From: Jeremy Ford [mailto:[EMAIL PROTECTED] > Sent: Friday, February 13, 2004 11:04 AM > To: [EMAIL PROTECTED] > Subject: [PROPOSAL] [J1] Search Service Enhancements > > > I would like to propose the following changes to the Search Service and > related classes. > > 1) Add the update methods to the Search interface > Benefit -- allows updating the index > > 2) Replace the setFields/getFields and setKeywords/getKeywords > Map/String[] > methods in ParsedObject with the commons collections MultiMap > Benefit -- allows multiple field values with the same key > Negative -- changes existing API > > An alternative would be to add new methods that take the MultiMap and > depracate the others. > > 3) Finish adding support for the fields/keywords in the > LuceneSearchService > impl > Benefit -- allows the search query the option to search other > fields via > the Lucene native query syntax > > 4) Add get/setClassName to the ParsedObject interface. This would be > populated with the className of the object that was parsed. > > 5) Add the method Set getFields() to the ObjectHandler. This > would return > the set of fields that the handler used to create the parsed object. > > 6) Change the LuceneSearchService impl to the following: > For each hit: > get the document > from the document, get the classname (comes from item 4) > get the handler for the given classname > ask for the set of fields (comes from item 5) > using this set, get the fields from the document and populate the > parsedObject > > Any comments or suggestions are appreciated. > > Jeremy Ford > [EMAIL PROTECTED] > > _________________________________________________________________ > Optimize your Internet experience to the max with the new MSN Premium > Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/ > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]