You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Tri Nguyen <tr...@yahoo.com> on 2011/08/12 08:58:13 UTC
parsing many documents takes too long
Hi,
My results from solr returns about 982 documents and I use jaxb to parse them into java objects, which takes about 469 ms, which is over my 150-200ms threshold.
Is there a solution around this? Can I store the java objects in the index and return them in the solr response and then serialize them back into java objects? Would this take less time?
Any other ideas?
Thanks,
Tri
Re: parsing many documents takes too long
Posted by Erik Hatcher <er...@gmail.com>.
Sounds like you aren't using SolrJ, which will return a Java object back to you natively. Give that a try and let us know how it fairs against the jaxb method.
Erik
On Aug 12, 2011, at 02:58 , Tri Nguyen wrote:
> Hi,
>
> My results from solr returns about 982 documents and I use jaxb to parse them into java objects, which takes about 469 ms, which is over my 150-200ms threshold.
>
> Is there a solution around this? Can I store the java objects in the index and return them in the solr response and then serialize them back into java objects? Would this take less time?
>
> Any other ideas?
>
> Thanks,
>
> Tri