Hello, You could extract the file name extension at index time, and index it as a Field.Keyword. Then you can search for it with a simple TermQuery or <fieldname>:<extension> syntax using QueryParser.
Otis P.S. Please don't cross-post - use [EMAIL PROTECTED] list --- haipeng du <[EMAIL PROTECTED]> wrote: > how could I search lucene that contains words with specified suffix? > Such as > to get all documents that "filename" ends with ".pdf". > Thanks a lot. > -- > Haipeng Du > Software Engineer > Comphealth, > Salt Lake City > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]