Re: Storing and retrieving Java objects in Lucene

2018-02-19 Thread Kumar, Santosh
Hi Ganesh, Thank you for quick response. Most of these documents will have more than 10 fields. In some cases there is also a foreign key relationship. Will consider JSON. Also need to consider performance factor. Thank you and Regards, Santosh On 20/02/18, 10:00 AM, "ganesh m"

Re: Storing and retrieving Java objects in Lucene

2018-02-19 Thread ganesh m
Hi Santosh >>Furthermore converting the Lucene Documents to Java object and vice- versa is a tedious task. This should not be tedious, how big your document is? One suggestion is to convert your Java object to JSON and store it in Lucene. You need to retrieve one field and you can easily

Storing and retrieving Java objects in Lucene

2018-02-19 Thread Kumar, Santosh
Hi, I have a requirement to store a Java object with multiple fields into the Lucene index. Basically, at the application startup I run a select query on entities ( there are 5 of them as of now and may increase in future) and then create an index for each of these entities (5) i.e. five