On Wed, Nov 4, 2009 at 10:48 AM, Joel Nylund <jnyl...@yahoo.com> wrote:
> Hi, I looked at the documentation and I have no idea how to get started? > Can someone point me to or show me an example of how to send a query to a > solr server and paginate through the results using ajax-solr. > > I would glady write a blog tutorial on how to do this if someone can get me > started. > > I dont know jquery but have used prototype & scriptaculous. > > thanks > Joel > > Joel, It will be best if you use a scripting language between Solr and JavaScript This is becasue sending data only between JavaScript and Solr will limit you to only one domain name. However, if you are using a scripting language between JavaScript and Solr you can use the scripting language to retrieve the request parameters from JavaScript and then same them to Solr with the response writer set to json. This will cause Solr to send the response in JSON format which the scripting language can pass on to JavaScript. This example here will cause Solr to return the response in JSON. http://example.com:8443/solr/select?q=searchkeyword&wt=json -- "Good Enough" is not good enough. To give anything less than your best is to sacrifice the gift. Quality First. Measure Twice. Cut Once.