Only problem with ajax I see is SEO. Normally, I would like all the results to be cached by search engines. what is your opinion for search engine optimization here?
On Wed, Aug 22, 2012 at 1:11 PM, Robert G. <[email protected]> wrote: > Hey :) > > I did it with JS/Ajax, if you want to send the complete result from server > side, than I would solrJ (java API for Solr), and send the results to FTL > or > groovy--> ftl. Than you can enumerate these results f.ex. with <list>-Tag > in > ftl to show them on the page. The solrJ methods are really easy i.ex.: > > / > //open the connection to solr > CommonsHttpSolrServer solr = new > CommonsHttpSolrServer("http://localhost:8983/solr"); > > //set the query parameter set > ModifiableSolrParams params = new ModifiableSolrParams(); > params.set("q", "cat:electronics"); > params.set("defType", "edismax"); > params.set("start", "0"); > > //send the query parameter > QueryResponse response = solr.query(params); > > //get results > SolrDocumentList results = response.getResults(); > > //i.ex. print the results > for (int i = 0; i < results.size(); ++i) { > System.out.println(results.get(i)); > }/ > > Kindly > > > > -- > View this message in context: > http://ofbiz.135035.n4.nabble.com/Form-Field-show-information-from-different-entities-tp4635391p4635879.html > Sent from the OFBiz - User mailing list archive at Nabble.com. > > -- > Thanks, > Deepak Agarwal, > > Paxcel Technologies Pvt Ltd. > Hartron Complex, Sector 18, Gurgaon, India. > E-Mail: [email protected] > Mobile: +91 9910322604 > >
