[jira] Updated: (NUTCH-594) Serve Nutch search results in multiple formats including XML and JSON

2008-12-31 Thread Dennis Kubes (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kubes updated NUTCH-594:
---

Attachment: NUTCH-594-5-20081231.patch

New patch addresses current issues.

>> Issues to be addressed before committing:

>> * many public classes lack javadoc - this needs to be added, especially 
>> since you are adding a new extension point. Please add the class-level, 
>> public and protected methods javadoc.

Added javadoc.

>> * SimpleDateFormat is not thread-safe (I wish it were!), so this makes 
>> *ResponseWriter-s also not thread-safe. I believe this should be fixed, 
>> because servlets can be invoked from multiple threads.

Wow.  I didn't know that.  I changed it to be local scoped variable.

>> * new configuration properties should be documented in nutch-default.xml 
>> and they should be given sensible defaults.

Done.

>> * the patch adds SearchServlet to web.xml, so it should ensure also that 
>> at least one ResponseWriter plugin is turned on in nutch-default.xml.

Done.  I turned on both xml and json response writers by default.

 >>* minor nits: I'm not sure that we really need pretty-printing in 
 >> XMLResponseWriter - indenting takes space (-> bandwidth). There are 2 
 >> spurious spaces in plugin/build.xml diffs.

I went half way with you on this.  I think it is good for development, 
debugging, but yes better without it for production.  I put in a configuration 
variable to allow either pretty printing or not.



> Serve Nutch search results in multiple formats including XML and JSON
> -
>
> Key: NUTCH-594
> URL: https://issues.apache.org/jira/browse/NUTCH-594
> Project: Nutch
>  Issue Type: New Feature
> Environment: all
>Reporter: Dennis Kubes
>Assignee: Dennis Kubes
> Attachments: commons-beanutils-1.8.0.jar, 
> commons-collections-3.2.1.jar, ezmorph-1.0.6.jar, json-lib-2.2.2-jdk15.jar, 
> NUTCH-594-1-20071221.patch, NUTCH-594-3-20081229.patch, 
> NUTCH-594-4-20081230.patch, NUTCH-594-5-20081231.patch
>
>
> Allow search results to be served in XML, JSON, and other configurable 
> formats.  Right now there is an OpenSearch servlet that returns returns in 
> RSS. I would like something that has more flexibility in terms of the XML 
> being served and also supports other formats such as JSON or plain text.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (NUTCH-594) Serve Nutch search results in multiple formats including XML and JSON

2008-12-30 Thread Dennis Kubes (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kubes updated NUTCH-594:
---

Attachment: NUTCH-594-4-20081230.patch

Final patch.  Adds the ability to stop summaries from being returned and to 
only return a given set of fields by name.

> Serve Nutch search results in multiple formats including XML and JSON
> -
>
> Key: NUTCH-594
> URL: https://issues.apache.org/jira/browse/NUTCH-594
> Project: Nutch
>  Issue Type: New Feature
> Environment: all
>Reporter: Dennis Kubes
>Assignee: Dennis Kubes
> Attachments: commons-beanutils-1.8.0.jar, 
> commons-collections-3.2.1.jar, ezmorph-1.0.6.jar, json-lib-2.2.2-jdk15.jar, 
> NUTCH-594-1-20071221.patch, NUTCH-594-3-20081229.patch, 
> NUTCH-594-4-20081230.patch
>
>
> Allow search results to be served in XML, JSON, and other configurable 
> formats.  Right now there is an OpenSearch servlet that returns returns in 
> RSS. I would like something that has more flexibility in terms of the XML 
> being served and also supports other formats such as JSON or plain text.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (NUTCH-594) Serve Nutch search results in multiple formats including XML and JSON

2008-12-29 Thread Dennis Kubes (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kubes updated NUTCH-594:
---

Attachment: NUTCH-594-3-20081229.patch

Fixed some things.  Added the ability to set mime output type using the 
plugin.xml file.  That way people can have application/json or text.json or 
text/plain, however they want for their application.

> Serve Nutch search results in multiple formats including XML and JSON
> -
>
> Key: NUTCH-594
> URL: https://issues.apache.org/jira/browse/NUTCH-594
> Project: Nutch
>  Issue Type: New Feature
> Environment: all
>Reporter: Dennis Kubes
>Assignee: Dennis Kubes
> Attachments: commons-beanutils-1.8.0.jar, 
> commons-collections-3.2.1.jar, ezmorph-1.0.6.jar, json-lib-2.2.2-jdk15.jar, 
> NUTCH-594-1-20071221.patch, NUTCH-594-3-20081229.patch
>
>
> Allow search results to be served in XML, JSON, and other configurable 
> formats.  Right now there is an OpenSearch servlet that returns returns in 
> RSS. I would like something that has more flexibility in terms of the XML 
> being served and also supports other formats such as JSON or plain text.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (NUTCH-594) Serve Nutch search results in multiple formats including XML and JSON

2008-12-29 Thread Dennis Kubes (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kubes updated NUTCH-594:
---

Attachment: (was: NUTCH-594-3-20081229.patch)

> Serve Nutch search results in multiple formats including XML and JSON
> -
>
> Key: NUTCH-594
> URL: https://issues.apache.org/jira/browse/NUTCH-594
> Project: Nutch
>  Issue Type: New Feature
> Environment: all
>Reporter: Dennis Kubes
>Assignee: Dennis Kubes
> Attachments: commons-beanutils-1.8.0.jar, 
> commons-collections-3.2.1.jar, ezmorph-1.0.6.jar, json-lib-2.2.2-jdk15.jar, 
> NUTCH-594-1-20071221.patch
>
>
> Allow search results to be served in XML, JSON, and other configurable 
> formats.  Right now there is an OpenSearch servlet that returns returns in 
> RSS. I would like something that has more flexibility in terms of the XML 
> being served and also supports other formats such as JSON or plain text.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (NUTCH-594) Serve Nutch search results in multiple formats including XML and JSON

2008-12-29 Thread Dennis Kubes (JIRA)

 [ 
https://issues.apache.org/jira/browse/NUTCH-594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Kubes updated NUTCH-594:
---

Summary: Serve Nutch search results in multiple formats including XML and 
JSON  (was: Serve Nutch search results in XML and JSON)

> Serve Nutch search results in multiple formats including XML and JSON
> -
>
> Key: NUTCH-594
> URL: https://issues.apache.org/jira/browse/NUTCH-594
> Project: Nutch
>  Issue Type: New Feature
> Environment: all
>Reporter: Dennis Kubes
>Assignee: Dennis Kubes
> Attachments: commons-beanutils-1.8.0.jar, 
> commons-collections-3.2.1.jar, ezmorph-1.0.6.jar, json-lib-2.2.2-jdk15.jar, 
> NUTCH-594-1-20071221.patch, NUTCH-594-3-20081229.patch
>
>
> Allow search results to be served in XML, JSON, and other configurable 
> formats.  Right now there is an OpenSearch servlet that returns returns in 
> RSS. I would like something that has more flexibility in terms of the XML 
> being served and also supports other formats such as JSON or plain text.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.