Posted on March 19, 2011, 1:10 am, by admin, under
Programming.
Lately I wanted to index all tags of ActsAsTaggableOn for full text search and autosuggestions using Solr resp. Sunspot. The ActiveRecord models of ActsAsTaggableOn are unfortunately not directly accessible as they are located in the ActsAsTaggableOn gem. Fortunately that is pretty easy to solve by using metaprogramming techniques. So I added an additional initializer named [...]
Posted on March 13, 2011, 10:27 am, by admin, under
Programming.
Today I released QuerySolr. It is a small jQuery library for easily sending Ajax Solr requests. A Solr query using QuerySolr looks like this: $.querysolr({ host: "127.0.0.1", port: "8983", params: { q: "*:*", fq: "type:car" }, callback: function(data) { // do something with the returned Solr JSON results } }).query(); // and finally send the [...]
Posted on March 1, 2011, 9:01 am, by admin, under
Programming.
There are several options available for getting autocompletion/autosuggestion to work with Solr. Below is an overview of these options and their advantages respectively disadvantages. If you have a question about one of these techniques then please feel free to leave a comment (just added DISQUS as comment system to my blog). I will write another [...]