lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <>
Subject Re: Document Object
Date Wed, 05 Jun 2002 17:07:51 GMT
As far as I know there is no generic way to do that.
You can parse the String in your application, form Fields, add them to
a Document, and there you go, but there is nothing generic.  Besides
field names and values, your String would also have to contain meta
data about each field, whether it is to be indexed, unindexed,
tokenized or not tokenized, etc.
"field1:value1<Keyword>, field2:value2<UnStored>"

Maybe there are better approaches.  This is just the first thing that
came to mind.

Good luck, and if you implement something generic please contribute it
to the project.


--- Pradeep Kumar K <> wrote:
> Hi all
> Is there any way to type cast a String Object to Document object.
> ie, Document object can be converted to its String from by using
> method 
> 'toString()'. How we can convert it back to Document object.
> Any help will be greatly appreciated.
> Regards
> Pradeep
> --------------------------------------------------------------
> Robosoft Technologies, Mangalore, India
> --
> To unsubscribe, e-mail:  
> <>
> For additional commands, e-mail:
> <>

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message