I use the Sunspot gem in my RoR app to do searches on the Post
model, and it works great for that. However, I need to use it's matching algorithm against a single post object.
For example, I can search all Posts like this:
Sunspot.search Post do
...
end
But, I need to do the search against a single post object, like so:
Sunspot.search @post do
...
end
Is this possible?
I want to use the same matching algorithm on a single post object to check whether it matches or it doesn't.