I’m trying to retrieve a complete Document using Full Text Search & .NET from Enterprise Edition 6.0.1 build 2037.
- Created FTS index in the database, where each field is specified as “stored” (I’ve checked the index using Web UI, it works. Index is 100% complete.)
- Wrote the following code:
var searchResult = await bucket.QueryAsync(new SearchQuery { Index = dbConfig.FTS_Index, Query = new BooleanQuery().Must(MustFields.ToArray()).Should(ShouldFields.ToArray()).ShouldMin(0), SearchParams = new SearchParams() //Explanation set to TRUE .Explain(dbConfig.ExplainResults) .Highlighting(HighLightStyle.Ansi) }); if (!searchResult.Success) { }
foreach (var row in searchResult)
{
}
Search runs successfully and brings back one row (the way it should be) that has doc ID, Explanation, Location and Score. However, I also need a complete document associated with this doc ID.
Thank you !