[Registry-dev] dealing with media types
Sanjiva Weerawarana
sanjiva at wso2.com
Tue Sep 11 10:24:23 PDT 2007
I guess for full-text search we should look at the Apache Lucene search
engine and see whether it makes sense to integrate that. Maybe also Apache
Solr which is part of lucene.apache.org.
I don't know anything about search engines but we could ask a Lucene
person and find out how to do it right.
Let's get the registry basic stuff operational and then contact some folks
over in Lucene-land.
Sanjiva.
Paul Fremantle wrote:
> +1 on this.
>
> Do we also need a way to add search terms to the registry.
>
> For example, suppose I add a WSDL file. I would like the WSDL processing
> extension to add the service names as search items (possibly we need to
> add QName support?). Also I'd like it to add any documentation text to
> the set of full-text searchable text. How should we cope with this?
>
> Paul
>
> Sanjiva Weerawarana wrote:
>> We had a small discussion here in Colombo about $subject and here are
>> the notes:
>>
>> We need a media type table to keep track of how to determine the media
>> type for a given file extension. This is needed to not force users to
>> have to always give us the media type when the resource they are
>> plopping into the registry has a known file extension.
>>
>> Usage:
>> - When a resource is inserted to the repository, we need to determin
>> the media type. This comes from one of three sources:
>> - user gives it
>> - if the resource name has an extension, look up the extension in
>> the table above
>> - otherwise unknown
>> - When a resource is obtained from the repository, we set the right
>> media type using this table
>>
>> How do we populate the file extension -> media type table? Initially
>> we will just copy the default mime.types file from Apache HTTPD and
>> put it in the core jar file somewhere so that we can have it built in.
>>
>> Thoughts?
>>
>> Sanjiva.
>
--
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
email: sanjiva at wso2.com; cell: +94 77 787 6880; fax: +1 509 691 2000
"Oxygenating the Web Service Platform."
More information about the Registry-dev
mailing list