Closed (fixed)
Project:
Apache Solr AJAX
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Nov 2009 at 14:14 UTC
Updated:
21 Dec 2009 at 19:40 UTC
Could you please elaborate on status of this project. And also on the AJAX Solr JavaScript library.
What is the motivation for rewrite and how it's going to affect this module, how much time is it expected to take.
Thank you!
Comments
Comment #1
jpmckinney commentedThe AJAX Solr library was originally based on the SolrJS library. However, an important limitation of SolrJS was its handling of Solr parameters. Adding support for highlighting, spellchecking, spatial search, etc. would have taken hundreds of lines of code each under the old SolrJS model. Under the new model used in the latest version of the AJAX Solr library, all of Solr's features are supported, and it takes one line of code to add a Solr parameter. The rewrite has significantly reduced complexity, has reduced the code base, and has reduced the amount of code you'll have to write and understand.
The rewrite is already complete, and has been for a few weeks. The developer is currently working on documentation.
I recommend you follow the commit history on http://github.com/evolvingweb/ajax-solr for the most information.
Today, I am releasing a completely different way to AJAXify the apachesolr module. The old way required writing a widget for each and every facet block, current search block, text search block, sorting block, pagination block, etc. This would be hundreds, even thousands, of lines of code to turn your non-AJAX search interface into an AJAX interface.
After a few more weeks experience with the apachesolr module, I've learned you can customize its interface extensively, without writing any JavaScript. The new apachesolr_ajax module requires that you define two easy-to-implement hooks, and that's it. I'm updating the module's page as we speak with the latest info.