Sorry for my stupid question. I got the unexpected results since my query is
wrong. Now it is fixed.
I found a small and nice prgram in lucene faq to find the effect of a
Analyzer for a specific string .Here it goes.
class AnalyserTest{
public static void main(String a[])throws Exception{
Reader reader =new StringReader(a[0]);
TokenStream in =new StandardAnalyzer().tokenStream(reader);
for(;;){
Token token=in.next();
if(token == null)
{ break;
}
System.out.println("["+token.termText()+"]");
}
}
}
----
- Original Message -----
From: "Raj" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 12, 2002 2:43 PM
Subject: custom Tokenizer
> Hello All,
> My program indexing a string---
> London/Bristol/LondonEast/Scotland using standarad anlyser.
> when i seach with a word london it doesnt comeup in the hits. If i
> search for "london" it is coming.
> Where would be the problem?
> should it requires a custom tokenizer which should tokenize the / s in
> the input string while indexing. Or is that facility is available in
> StandardTokenizer already.
> Thanks..
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>