The value of the word - the word itself, should be your unique identifier.

Otis

----- Original Message ----
From: Josh Joy <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, January 11, 2007 5:39:24 AM
Subject: Re: SpellChecker Index - remove words?

Thanks for the reply....I guess my concern is that I
want to ensure that 
I don't accidentally delete other words than the
intended word. Example, 
if I build a custom index, I can delete a word not
based on the term 
itself, though in the term I can include a "unique"
identifier as well. 
Can the same be done for the spell checker index?

Thanks in advance,
Josh

Otis Gospodnetic wrote:
> Josh,
>
> The spellchecker index is just another Lucene index,
so you can delete documents/words from it the same way
you delete documents from any Lucene index - using
IndexReader's delete(...) methods.  You can pass that
delete method a Term where the field name is "word"
and the value is the mizpelt word.
>
> Otis 
>
> ----- Original Message ----
> From: Josh Joy <[EMAIL PROTECTED]>
> To: java-user@lucene.apache.org
> Sent: Thursday, January 11, 2007 2:26:18 AM
> Subject: SpellChecker Index - remove words?
>
> Hi All,
>
> The spellchecker api is very nice to use, and I can
> easily add words to 
> the index. However, because the words I am adding
are
> from another index 
> that is user generated per se (meaning it may have
> spelling errors), how 
> can I safely remove words from the spell checker
> index? If I know the 
> exactly the word I would like to remove?
>
> Thanks,
> Josh
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
[EMAIL PROTECTED]
> For additional commands, e-mail:
[EMAIL PROTECTED]
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to