Hi Aashish, On 10/26/2008 at 11:36 PM, Agrawal, Aashish (IT) wrote: > I am searching a sample file like below - > --- > agrawal fdfdf > fsdfafasf 3495549584 > fsfsfs fsffsf r4e3fdere j4343 > --------- > > when I search this file with pattern - > .*4343* > .*[a-z]4343 > j4343 > or even search for 3495549584 > > all are failing with result no match found..
Have you tried searching for terms without digits, e.g. 'f(df)+'? It is possible that the analyzer you're using at index time is not including digits. As Erick suggested, look inside your index with Luke. > Also if I try to search *4343*, it throws exception,, > shouldn't * at start be allowed with regexQuery ? In Java's regular expression language, '*' is a repeat operator, and must follow the regular expression to be repeated (like '.' or 'a' or '[a-z]') -- probably what you mean is: '.*4343.*' Steve --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]