Re: zero termfreq for some search strings with special characters

2007-06-20 Thread Erick Erickson
You don't. You don't have an actual term "emp-id" in your index. You have "emp" and "id". So "emp-id" isn't a term. If you really want to control this sort of thing, and none of the stock analyzers work exactly as you require, you need to write your own Analyzer that breaks the stream however you

Re: zero termfreq for some search strings with special characters

2007-06-20 Thread SK R
Hi, Thanks for your reply. But how do I get termfreq of that term("emp-id")? Does Lucene have any other way to handle this? I appreciate any solution regarding this problem. Regards SenthilKumaran On 6/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: You are right! "emp-id" w

RE: zero termfreq for some search strings with special characters

2007-06-20 Thread Liu_Andy2
You are right! "emp-id" will be separated to two terms CONTENT:"emp" CONTENT:"id" by standard tokenizer for indexing and searching. But direct writing term (CONTENT:"emp-id") will not. Andy -Original Message- From: SK R [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 5:24 PM