Hi Vassil,
Prefix queries can be created in Sunspot 0.10 using the starts_with method - note that if you want to prefix on fulltext fields, you will want to use a text_fields block. See my post on http://outoftime.github.com for more on that.
Stemming is done by Solr if an appropriate filter is placed in the filter chain. Sunspot's built-in Solr instance uses the filter chain that ships by default with Solr itself, which doesn't include stemming. But all you have to do is add it into the chain in solrconfig.xml and you should be set. Check out the Solr wiki for more on that. To run the sunspot-solr executable with a custom solrconfig, you'll need to pass in the flag for solr home - run 'sunspot-solr -h' to get info on that.
Hope that helps!
Mat
On Nov 11, 2009 10:30 PM, "Vassil Kovatchev" <vassil.k...@gmail.com> wrote:
Hello Matthew,
Did you get a chance to implement the wildcard support?
If not, can you give me some pointers as to what can I do to make the
code pass wildcard queries? I understand you want to keep things clean
and in sync with the current DSL, but I'm prototyping a project and a
quick-and-dirty solution will be good enough as a proof of concept.
Also, I noticed that stemming doesn't seem to work with Sunspot. For
example if I have two documents with contents "test" and "tests"
respectively, querying for "test" returns only the one that contains
the word "test" while I'd expect it to return both "test" and "tests"
as a result of term stemming. I'm using "text" type for the field
being indexed.
Your thoughts?
Cheers,
Vassil
On Jul 22, 9:51 am, "Matthew A. Brown" <mat.a.br...@gmail.com> wrote: > Good suggestion - I'll give...
> On Wed, Jul 22, 2009 at 10:29, cyx<cyx.uc...@gmail.com> wrote: > > > Hi, > > > Yes I'm looking to ...
> >> > far! One thing I can't figure out is how to dowildcardsearching i.e.
> > >> > Span* > > >> > which returns Spanish, Spaniard, etc etc. > > >> > Is this possible at all w...