Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 67910 invoked from network); 22 Feb 2011 13:58:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2011 13:58:53 -0000 Received: (qmail 36386 invoked by uid 500); 22 Feb 2011 13:58:51 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 35920 invoked by uid 500); 22 Feb 2011 13:58:47 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 35909 invoked by uid 99); 22 Feb 2011 13:58:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 13:58:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [141.35.1.28] (HELO fsuj26.rz.uni-jena.de) (141.35.1.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Feb 2011 13:58:37 +0000 Received: from mailsmtp1.rz.uni-jena.de (smtp.uni-jena.de [141.35.1.18]) by fsuj26.rz.uni-jena.de (8.13.8/8.13.8) with ESMTP id p1MDwHIj018891 for ; Tue, 22 Feb 2011 14:58:17 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-jena.de; s=dkim-2011; t=1298383097; bh=NsCtHOpLJnBHJ6G0IH8ktnpoUDBQU4/HwGm5IANLFn4=; h=Message-ID:Date:From:To:Subject; b=dNei87ENvDB8MGWl0dEqQQMOAB2ikbBFg7XwpWeAbbgW2H4XdTsdnfwuK4bTWEqML Xew+pRm9q/v/ywGVbia5skCS1EAS4kVEmAWmBEm5p9nXq7eZsVr50KtYND46ZxM7uI 89fMUvb8/EU3BhD5C+r/DLu+dFYFujXdzdwKPwkQ= Received: from [141.35.141.140] (autokino.coling.uni-jena.de [141.35.141.140]) (authenticated id=erik.faessler@uni-jena.de bits=0) by mailsmtp1.rz.uni-jena.de (8.13.1/8.13.1) with ESMTP id p1MDwHc2021176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 22 Feb 2011 14:58:17 +0100 Message-ID: <4D63C0ED.1090103@uni-jena.de> Date: Tue, 22 Feb 2011 14:58:05 +0100 From: =?ISO-8859-15?Q?Erik_F=E4=DFler?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.9) Gecko/20100914 SUSE/3.1.4 Thunderbird/3.1.4 MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Serialization of Lucene Document objects Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi there, I'd like to serialize some Lucene Documents I've built before. My goal is to send the documents over a http connection to a Solr server which then should add them to its index. I thought this would work as the Document class implements Serializable as do the Fields. Unfortunately, the serialization fails because the TokenStream class is not serializable. But if you create Fields on TokenStreams, these are stored in the Field objects and so the serialization does not seem possible. Did I miss something? Or is it just the case that you can serialize documents whose fields only have String values (I didn't check if this works indeed, but I guess so) and no documents which need a TokenStream? Other ideas how to archive my goal? I already have a solution where I let Solr build the document. This is too slow, however, I'd like to scale to document construction, so I'd rather want to do as much as work before as possible (my data is rather large and of a bit complicated structure). Thanks for any hints! Regards, Erik --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org