Re: ClassCastException setting date.formats in ExtractingRequestHandler

2010-02-04 Thread Christoph Brill
Looks like it works. No crashes and the logs states it was added. I didn't test against acutal data, though. 04.02.2010 17:14:13 org.apache.solr.handler.extraction.ExtractingRequestHandler inform INFO: Adding Date Format: -MM-dd HH:mm:ss 04.02.2010 17:14:13 org.apache.solr.handler.extraction.E

Re: ContentStreamUpdateRequest addFile fails to close Stream

2010-02-04 Thread Christoph Brill
Good job Mark, works fine and does not keep my files open. Thanks, Chris Am 03.02.2010 15:24, schrieb Mark Miller: > Hey Christoph, > > Could you give the patch at > https://issues.apache.org/jira/browse/SOLR-1744 a try and let me know > how it works out for you?

Re: ClassCastException setting date.formats in ExtractingRequestHandler

2010-02-04 Thread Christoph Brill
Cool, this way it's no longer crashing. Thanks and Regards, Chris Am 04.02.2010 14:29, schrieb Mark Miller: > Before you file a JIRA issue: > > I don't believe this is a bug, so there is likely no need for JIRA. Try > putting the date.formats snipped in the defaults section rather than > simply

ExtractingRequestHandler "multiple values encountered for non multiValued field last_modified"

2010-02-04 Thread Christoph Brill
Hi list, I'm using the ExtractingRequestHandler to extract content from documents. It's extracting the "last_modified" field quite fine, but of course only for documents where this field is set. If this field is not set I want to pass the file system timestamp of the file. I'm doing: final Conte

Re: ContentStreamUpdateRequest addFile fails to close Stream

2010-02-02 Thread Christoph Brill
lose the stream it gets? >From 08b158c28ebee618ac65defe731cbbc4954977b2 Mon Sep 17 00:00:00 2001 From: Christoph Brill Date: Tue, 2 Feb 2010 13:39:26 +0100 Subject: [PATCH] [Bugfix] Close streams after sending them --- .../client/solrj/impl/CommonsHttpSolrServer.java |9 + 1 files ch

Re: ContentStreamUpdateRequest addFile fails to close Stream

2010-02-02 Thread Christoph Brill
(); } } This isn't exactly beauty code but at least it works this way. Would be great if someone would come up with a better idea for solrj 1.5 Regards, Chris Am 02.02.2010 13:27, schrieb Christoph Brill: > Hi list, > > I'm using ContentStreamUpdateRequest.addFile(File)

ContentStreamUpdateRequest addFile fails to close Stream

2010-02-02 Thread Christoph Brill
Hi list, I'm using ContentStreamUpdateRequest.addFile(File) to index a bunch of documents. This works fine unless the stream created in addFile doesn't seem to get closed. This causes issues because my process has to many open files. It's a bug, right? Regards, Chris

ClassCastException setting date.formats in ExtractingRequestHandler

2010-02-02 Thread Christoph Brill
Hi list, I tried to add the following to my solrconfig.xml (to the ' -MM-dd which is described on the wiki page of the ExtractingRequestHandler[1]. After doing so I always get a ClassCastException once the lazy init of the handler is happening. This is a stock solr 1.4 with no modifica