This NEST wildcard search is returning zero (0) documents, even though it should because there is data in my index that has this criteria. It is a valid connection and there are no errors showing when setting breakpoints. Any Ideas?
public class Book_ES
{
public string book_title { get; set; }
public string book_author { get; set; }
}
sr_detailed = new SearchDescriptor<Book_ES>()
.Index("books_3").Take(10000)
.Query(a => a
.Bool(b => b
.Should(c => c
.Wildcard(d => d
.Field(f=>f.book_title).Field(g=>g.book_author).Value("A*")
)
)
)
).Highlight(h => h.Fields(f => f.Field("*").PreTags("<span class='hit' style='background-color:yellow'>").PostTags("</span>")))
;
var results = Esclient.Search<Book_ES>(sr_detailed);