Hi Aaron,
By partial keywords I assume you mean prefix matching (e.g., "pizz" matches "pizza"). Sunspot uses Solr's DisMax handler for keyword search, which doesn't have any prefix support. You can manually parse out the keyword(s) that you want to prefix and then use a text_fields {} block with a starts_with restriction inside it, though. A future version of Sunspot might provide a more automated way of doing the same.
Mat
On Nov 14, 2009 11:49 AM, "Aaron Soules" <aso...@gmail.com> wrote:
Hello!
First, thanks for Sunspot!
I'm new to Solr, but trying out the WebSolr support on Heroku. I would like to be able to search partial keywords, but I've been searching for hours and cannot find any documentation of how exactly that works with Solr. Any help would be greatly appreciated!
Thanks,
Aaron
That looks like it'll work, but keep in mind that going outside the public API exposes you to the risk that any new version of Sunspot could break your code.
As far as the dynamic text fields go, I'd never intended for that to be a feature - more just a metaprogramming coincidence that it's possible to define them - but I'll look into whether it's possible to fully support that and, if not, remove it from the public API.
Mat
On Nov 28, 3:55 pm, Randy <randy.si...@gmail.com> wrote: > I am using Sunspot 0.10.8 but I get an ex...