标签云

微信群

扫码加入我们

WeChat QR Code

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 "foo@gmail.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

1970年01月01日00分03秒

Hmm. That sounds really hackish.

2019年04月22日41分01秒