Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-20 Thread Jacob Singh
On Wed, Dec 17, 2008 at 11:06 AM, Chris Hostetter wrote: > > : > : If I can find the bandwidth, I'd like to make something which allows > : > : file uploads via the XMLUpdateHandler as well... Do you have any ideas > : > > : > the XmlUpdateRequestHandler already supports file uploads ... all reque

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-16 Thread Chris Hostetter
: > : If I can find the bandwidth, I'd like to make something which allows : > : file uploads via the XMLUpdateHandler as well... Do you have any ideas : > : > the XmlUpdateRequestHandler already supports file uploads ... all request : But it doesn't do what Jacob is asking for... he wants (if I

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-16 Thread Jacob Singh
No, I didn't mean storing the binary along with, just that I could send a binary file (or a text file) which tika could process and store along with the XML which describes its literal meta-data. Best, Jacob On Mon, Dec 15, 2008 at 7:17 PM, Grant Ingersoll wrote: > > On Dec 15, 2008, at 8:20 AM,

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Grant Ingersoll
On Dec 15, 2008, at 8:20 AM, Jacob Singh wrote: Hi Erik, Sorry I wasn't totally clear. Some responses inline: If the file is visible from the Solr server, there is no need to actually send the bits through HTTP. Solr's content steam capabilities allow a file to be retrieved from Solr it

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Jacob Singh
Hi Erik, Sorry I wasn't totally clear. Some responses inline: > If the file is visible from the Solr server, there is no need to actually > send the bits through HTTP. Solr's content steam capabilities allow a file > to be retrieved from Solr itself. > Yeah, I know. But in my case not possible

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Erik Hatcher
Jacob, Hmmm... seems the wires are still crossed and confusing. On Dec 15, 2008, at 6:34 AM, Jacob Singh wrote: This is indeed what I was talking about... It could even be handled via some type of transient file storage system. this might even be better to avoid the risks associated with uplo

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Jacob Singh
Hi Erik, This is indeed what I was talking about... It could even be handled via some type of transient file storage system. this might even be better to avoid the risks associated with uploading a huge file across a network and might (have no idea) be easier to implement. So I could send the fi

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Erik Hatcher
On Dec 15, 2008, at 3:13 AM, Chris Hostetter wrote: : If I can find the bandwidth, I'd like to make something which allows : file uploads via the XMLUpdateHandler as well... Do you have any ideas the XmlUpdateRequestHandler already supports file uploads ... all request handlers do using

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-15 Thread Chris Hostetter
: If I can find the bandwidth, I'd like to make something which allows : file uploads via the XMLUpdateHandler as well... Do you have any ideas the XmlUpdateRequestHandler already supports file uploads ... all request handlers do using the ContentStream abstraction... http://wiki.apache

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-14 Thread Jacob Singh
Hey, thanks! This is good stuff. I didn't expect you to just make the fix! If I can find the bandwidth, I'd like to make something which allows file uploads via the XMLUpdateHandler as well... Do you have any ideas here? I was thinking we could just send the XML payload as another POST field.

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-13 Thread Grant Ingersoll
Hi Jacob, I just updated the code such that it should now be possible to send in multiple values as literals, as in an HTML form that looks like: method="POST"> Choose a file to upload: Cheers, Grant On Dec 12, 2008, at 11:53 PM, Jacob Singh wrote: Hi Grant, Thanks for the q

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-13 Thread Grant Ingersoll
On Dec 12, 2008, at 11:53 PM, Jacob Singh wrote: Hi Grant, Thanks for the quick response. My Colleague looked into the code a bit, and I did as well, here is what I see (my Java sucks): http://svn.apache.org/repos/asf/lucene/solr/trunk/contrib/extraction/src/main/java/org/apache/solr/handler

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-12 Thread Jacob Singh
Hi Grant, Thanks for the quick response. My Colleague looked into the code a bit, and I did as well, here is what I see (my Java sucks): http://svn.apache.org/repos/asf/lucene/solr/trunk/contrib/extraction/src/main/java/org/apache/solr/handler/extraction/SolrContentHandler.java //handle the lite

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-12 Thread Grant Ingersoll
Hmmm, I think I see the disconnect, but I'm not sure. Sending to the ERH (ExtractingReqHandler) is not an XML command at all, it's a file- upload/ multi-part encoding. I think you will need an API that does something like: (Just making this up, this is not real code) File file = new File(f

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-12 Thread Jacob Singh
Hi Grant, Happy to. Currently we are sending over documents by building a big XML file of all of the fields of that document. Something like this: $document = new Apache_Solr_Document(); $document->id = apachesolr_document_id($node->nid); $document->title = $node->title; $document->b

Re: ExtractingRequestHandler and XmlUpdateHandler

2008-12-11 Thread Grant Ingersoll
On Dec 10, 2008, at 10:21 PM, Jacob Singh wrote: Hey folks, I'm looking at implementing ExtractingRequestHandler in the Apache_Solr_PHP library, and I'm wondering what we can do about adding meta-data. I saw the docs, which suggests you use different post headers to pass field values alo

ExtractingRequestHandler and XmlUpdateHandler

2008-12-10 Thread Jacob Singh
Hey folks, I'm looking at implementing ExtractingRequestHandler in the Apache_Solr_PHP library, and I'm wondering what we can do about adding meta-data. I saw the docs, which suggests you use different post headers to pass field values along with ext.literal. Is there anyway to use the XmlUpdate