[Ferret-talk] Similar words
Julio Cesar Ody
julioody at gmail.com
Wed Jun 11 19:26:28 EDT 2008
So the problem you have is where to pull recommendations from. For my
own needs, I use a spell checker to do the "did you mean", which means
my data source is external, and thus I never hit the index twice.
As you seem to want to correlate the user's input with *existing*
entries in your index, then I still think you'll need to hit the index
twice, one using the analyzers you'd normally use, and another with a
fuzzy query.
To help scaling things, you could have 2 indexes. But that's another story.
On Wed, Jun 11, 2008 at 11:04 PM, Robert Hulme <hulme at ebi.ac.uk> wrote:
>> And I think it might have to boil down to that really. If you want to
>> get a the *number of results* for 'transferase' when someone searches
>> for 'transferaze', then it means you'll need to hit the index once
>> more with 'transferase' in separate.
>
> I'm happy to do that if that's the only way to do that, but that's really a
> secondary issue.
>
> Imagine I have in my index the following terms:
> abcd
> abce
> abcf
>
> and I search for abca
>
> I'd get 0 matches.
>
> What I'd like is to be able to present to the user:
>
> No matches found for 'abca'. Did you mean 'abcd', 'abce', or 'abcf' ?
>
> So I need Ferret to have method call that would return ['abcd', 'abce',
> 'abcf'].
>
> Is this possible?
>
> -Rob
> _______________________________________________
> Ferret-talk mailing list
> Ferret-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ferret-talk
>
More information about the Ferret-talk
mailing list