This analyzer targets short fields where *word* like searches are required.
[SomeUser@GMAIL.com 1234567890] will be tokenized as
[s.o.m.e.u.s.e.r..g.m.a.i.l..com..1.2.3.4.5.6.7.8.9.0] (read .'s as blank)
Usage:
QueryParser p = new QueryParser(Lucene.Net.Util.Version.LUCENE_29, "fieldName", new SingleCharTokenAnalyzer());
p.SetDefaultOperator(QueryParser.Operator.AND);
p.SetEnablePositionIncrements(true);
TopDocs td = src.Search(p.Parse("678"), 10);
or
TopDocs td = src.Search(p.Parse("\"gmail.com 1234\""), 10);
Namespace: Lucene.Net.Analysis.ExtAssembly: Lucene.Net.Contrib.Core (in Lucene.Net.Contrib.Core.dll) Version: 2.9.2.0 (2.9.2)
Syntax
Inheritance Hierarchy
System..::..Object
Lucene.Net.Analysis..::..Analyzer
Lucene.Net.Analysis.Ext..::..SingleCharTokenAnalyzer
Lucene.Net.Analysis..::..Analyzer
Lucene.Net.Analysis.Ext..::..SingleCharTokenAnalyzer