I want to use Lucene (in particular, Lucene.NET) to search for email address domains.E.g. I want to search for "@gmail.com" to find all emails sent to a gmail address.Running a Lucene query for "*@gmail.com" results in an error, asterisks cannot be at the start of queries. Running a query for "@gmail.com" doesn't return any matches, because "email@example.com" is seen as a whole word, and you cannot search for just parts of a word.How can I do this?
I'd also pass the tokenizer through a LowerCaseFilter, or perhaps a customized LowerCaseFilter that would only lowercase the GmAil.COM token
Hmm. That sounds really hackish.