Hello,

For 1) you'll need to write your own Analyzer that knows that you want
to be able to search on "abc", "123", and probably "abc123". 
WhitespaceAnalyzer just breaks input on spaces.

2) I think I answered that in the Lucene in Action forum.

Otis

--- pashupathinath <[EMAIL PROTECTED]> wrote:
> hi,
>   i'm a new lucene user. i've few questions regarding
> indexing and searching.
>   1)how do i search within tokens ..for example if
> i've a string "my name is abc123". using whitespace
> analyser i can search for any of these strings but
> when i search for 123 the search returns zero results.
> how can i search such tokens r strings ?? i want the
> search to display abc123 when i search for either abc
> or 123 not as a complete string.
>   2)i'm fetching records from the database and adding
> it to the index. how can i update the existing index
> when i add a new row or delete a row from the
> database. 
>   
> 
> thanks,
> pashupathinath.k
> 
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com 
> 
> ---------------------------------------------------------------------
> 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