Re: Storing HashMap as an UnIndexed Field

2005-09-20 Thread markharw00d
Or using XMLEncoder: HashMap map=new HashMap(); map.put("foo","bar"); ByteArrayOutputStream baos=new ByteArrayOutputStream(); XMLEncoder encoder =new XMLEncoder(baos); encoder.writeObject(map); encoder.flush(); System.out.println(baos.toString());

Re: Storing HashMap as an UnIndexed Field

2005-09-20 Thread jian chen
iginal Message- > From: Tricia Williams [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 20, 2005 3:30 PM > To: java-user@lucene.apache.org > Subject: RE: Storing HashMap as an UnIndexed Field > > Do you think there is anyway that I could use the serialization already > bui

RE: Storing HashMap as an UnIndexed Field

2005-09-20 Thread Mordo, Aviran (EXP N-NANNATEK)
I can't think of a way you can use serialization, since lucene only works with strings. -Original Message- From: Tricia Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 3:30 PM To: java-user@lucene.apache.org Subject: RE: Storing HashMap as an UnIndexed Field D

Re: Storing HashMap as an UnIndexed Field

2005-09-20 Thread Erik Hatcher
On Sep 20, 2005, at 3:29 PM, Tricia Williams wrote: Do you think there is anyway that I could use the serialization already built into the HashMap data structure? A Document, when reconstituted from Hits, is essentially a glorified HashMap-like structure. I recommend you simply iterate yo

RE: Storing HashMap as an UnIndexed Field

2005-09-20 Thread Tricia Williams
Do you think there is anyway that I could use the serialization already built into the HashMap data structure? On Tue, 20 Sep 2005, Mordo, Aviran (EXP N-NANNATEK) wrote: > You can store the values as a coma separated string (which then you'll > need to parse manually back to a HashMap) > > -O

RE: Storing HashMap as an UnIndexed Field

2005-09-20 Thread Mordo, Aviran (EXP N-NANNATEK)
You can store the values as a coma separated string (which then you'll need to parse manually back to a HashMap) -Original Message- From: Tricia Williams [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 20, 2005 3:14 PM To: java-user@lucene.apache.org Subject: Storing HashMap as an UnI