Re: Converting XML response of Search query into HTML.

2014-06-18 Thread Venkata krishna
Hi Erik, I have tried by removing '&' and i got response as in text format but i don't want response in text form. We need to get response as in html form with out any exception(Expected mime type application/xml but got text/html).So could you please provide any suggestion. Thanks, venkata kris

Re: Converting XML response of Search query into HTML.

2014-06-18 Thread Erik Hatcher
The ‘&’ is only for separating parameters when building a URL, but omit the ‘&’ when using SolrJ. You’ll probably need to do a little bit of SolrJ trickery to get the response back as text, such that SolrJ doesn’t try to interpret the response as XML or javabin. Erik On Jun 18, 2014,

Re: Converting XML response of Search query into HTML.

2014-06-18 Thread Venkata krishna
Thanks for quick responses, Ahemt , i have tried by removing ampersand then xml response has not converted to html response it is in just xml only. Erik , according to your suggestion i used VelocityResponseWriter. like this manner query.set("&wt", "velocity"); query.

Re: Converting XML response of Search query into HTML.

2014-06-12 Thread Erik Hatcher
Or, ahem, use VelocityResponseWriter :) > On Jun 12, 2014, at 21:07, Alexandre Rafalovitch wrote: > > Why are you doing your conversion on Solr side and not on SolrJ > (client) side? Seems more efficient and you can control the lifecycle > of XSLT objects better yourself. > > Regards, > Alex.

Re: Converting XML response of Search query into HTML.

2014-06-12 Thread Alexandre Rafalovitch
Why are you doing your conversion on Solr side and not on SolrJ (client) side? Seems more efficient and you can control the lifecycle of XSLT objects better yourself. Regards, Alex. Personal website: http://www.outerthoughts.com/ Current project: http://www.solr-start.com/ - Accelerating your S

Re: Converting XML response of Search query into HTML.

2014-06-12 Thread Ahmet Arslan
Hi, I see that you have ampersand left when setting various parameters.    query.set("&wt", "xslt"); should be    query.set("wt", "xslt");         On Thursday, June 12, 2014 6:12 PM, Venkata krishna wrote: Hi, I am using solr4.8, solrj  for to do searching, would like to get response o