Well, you haven't shown us your program, so it's hard to tell<G>.... But my first uninformed guess would be that the case of your search doesn't exactly match the case you indexed when you add letters to your IDs.
We need to see the search code particularly, including the analyzers you use (a snippet would do to start). The index code would be useful too. Best Erick On Tue, Apr 28, 2009 at 8:26 AM, CM Wong <cmwo...@yahoo.com> wrote: > > Hi, > > In my simple program I have an ID field which is NON_ANALYZED. I find that > if > the field contains only numeric characters (e.g. id="00023"), I can > successsfully search for the doc. (search for "id:00023") > > But if the field contains non-numeric characates (e.g. id="nJK00023") then > the > search returns nothing. (search for "id:nJK00023") > > Is there anything wrong with my program? > > Regards, > CM > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >