You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Paul Libbrecht <pa...@activemath.org> on 2005/09/02 15:37:19 UTC

Re: Did you mean?

Isn't this relatively easily done using current indexReader methods?
My 2p would be (I intended to do it):
- have each of your words get analyzed in each flavour (eg stemmed, 
phonetic...)
- get a tokens in each flavour and compare to that
- map back (that's the part I haven't done yet).

This is away from frequent search but realizes the "Did you mean" 
paradigm and is quite enough in many cases, I believe.

paul


Le 29 août 05, à 19:08, Chris Lu a écrit :

> * Analyze your original index, listing out all words inside.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Did you mean?

Posted by Chris Lu <ch...@gmail.com>.
On 9/2/05, Paul Libbrecht <pa...@activemath.org> wrote:
> Isn't this relatively easily done using current indexReader methods?
> My 2p would be (I intended to do it):
> - have each of your words get analyzed in each flavour (eg stemmed,
> phonetic...)
> - get a tokens in each flavour and compare to that
> - map back (that's the part I haven't done yet).

Mapping back the suggested words after the stemming may be a problem.
Unless we store the mapping somewhere.
-- 
Chris Lu
------------
Lucene Search RAD on Any Database
http://www.dbsight.net

> 
> This is away from frequent search but realizes the "Did you mean"
> paradigm and is quite enough in many cases, I believe.
> 
> paul
> 
> 
> Le 29 août 05, à 19:08, Chris Lu a écrit :
> 
> > * Analyze your original index, listing out all words inside.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org