lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: new bie ..
Date Thu, 31 Mar 2005 19:22:10 GMT
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 <pashupathinathk@yahoo.com> 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: 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


Mime
View raw message