You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to obtain the complete document by ID? When getting the results, I would like to have all the fields and values in the document, not just the ones that matched (FieldMatches).
The text was updated successfully, but these errors were encountered:
There's nothing built in - there's a general expectation that you'll still be able to query the original source text/object that was used to construct the index.
For example, when you're extracting matched phrases from search results, you're required to pass a delegate that returns the original:
foreach(var result inawait results.CreateMatchPhrasesAsync(i => books.First(x => x.BookId ==i))){
Console.WriteLine($"{result.SearchResult.Key} ({result.SearchResult.Score})");foreach(var fieldPhrase in result.FieldPhrases){
Console.Write($"{fieldPhrase.FoundIn}: ");
Console.WriteLine(string.Join(", ", fieldPhrase.Phrases.Select(x =>$"\"{x}\"")));}}
One of the objectives of indexing like this is to reduce the overall memory requirements of searching across all the items - storing the the original in memory would defeat that.
Hello!
Is it possible to obtain the complete document by ID? When getting the results, I would like to have all the fields and values in the document, not just the ones that matched (
FieldMatches
).The text was updated successfully, but these errors were encountered: