How to access the value of matched documents

52 views
Skip to first unread message

Arihant Barjatya

unread,
Jan 10, 2024, 3:55:27 AMJan 10
to bleve
I am saving words as documents and during search I am doing fuzzyquery . I need to access the word , but I am only able to get the id from it. How do I access the word in the most efficient way.

// type to save in index.
type data_object struct{
Id string
Keyword string
}

// how do i access all the keywords from the searchresult.
searchResult,err_search := index.Search(searchRequest)
Reply all
Reply to author
Forward
0 new messages