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!