Leading wildcard search

Does anyone know how to get this to work? If I use a native query as below, it returns the result I want (‘welcome’)

var query = searcher.CreateQuery("content", BooleanOperation.And, searcher.LuceneAnalyzer, new LuceneSearchOptions() { AllowLeadingWildcard = true })
.NativeQuery("__NodeTypeAlias:forumPost + subject:*come*");

However, I really need to build the query dynamically, so tried this ..

    var query = searcher.CreateQuery("content", BooleanOperation.And, searcher.LuceneAnalyzer, new LuceneSearchOptions() { AllowLeadingWildcard = true })
    .NativeQuery("__NodeTypeAlias:forumPost");

    query.And().Field("subject", "*come*");

This does not return any results!

Bezinga!

Stumbled across a working solution :smiley:

    var query = searcher.CreateQuery("content", BooleanOperation.And, searcher.LuceneAnalyzer, new LuceneSearchOptions() { AllowLeadingWildcard = true })
    .NativeQuery("__NodeTypeAlias:forumPost");

    query.And().Field("subject", "*come*".MultipleCharacterWildcard());

    var result = query.Execute();