{"action":"created","issue":{"url":"https://api.github.com/repos/blevesearch/bleve/issues/507","repository_url":"https://api.github.com/repos/blevesearch/bleve","labels_url":"https://api.github.com/repos/blevesearch/bleve/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/blevesearch/bleve/issues/507/comments","events_url":"https://api.github.com/repos/blevesearch/bleve/issues/507/events","html_url":"https://github.com/blevesearch/bleve/issues/507","id":193260884,"number":507,"title":"any way to get all struct field when search matched?","user":{"login":"saggit","id":2947926,"avatar_url":"https://avatars1.githubusercontent.com/u/2947926?v=4","gravatar_id":"","url":"https://api.github.com/users/saggit","html_url":"https://github.com/saggit","followers_url":"https://api.github.com/users/saggit/followers","following_url":"https://api.github.com/users/saggit/following{/other_user}","gists_url":"https://api.github.com/users/saggit/gists{/gist_id}","starred_url":"https://api.github.com/users/saggit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saggit/subscriptions","organizations_url":"https://api.github.com/users/saggit/orgs","repos_url":"https://api.github.com/users/saggit/repos","events_url":"https://api.github.com/users/saggit/events{/privacy}","received_events_url":"https://api.github.com/users/saggit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-03T02:54:14Z","updated_at":"2018-05-07T11:25:21Z","closed_at":"2016-12-05T02:01:03Z","author_association":"NONE","body":"Hi, I try the example, it works great, but the searchResult seems only contains the document id,\r\n\r\nis there any way to display the search result like elastic?"},"comment":{"url":"https://api.github.com/repos/blevesearch/bleve/issues/comments/387035861","html_url":"https://github.com/blevesearch/bleve/issues/507#issuecomment-387035861","issue_url":"https://api.github.com/repos/blevesearch/bleve/issues/507","id":387035861,"user":{"login":"mschoch","id":298143,"avatar_url":"https://avatars2.githubusercontent.com/u/298143?v=4","gravatar_id":"","url":"https://api.github.com/users/mschoch","html_url":"https://github.com/mschoch","followers_url":"https://api.github.com/users/mschoch/followers","following_url":"https://api.github.com/users/mschoch/following{/other_user}","gists_url":"https://api.github.com/users/mschoch/gists{/gist_id}","starred_url":"https://api.github.com/users/mschoch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mschoch/subscriptions","organizations_url":"https://api.github.com/users/mschoch/orgs","repos_url":"https://api.github.com/users/mschoch/repos","events_url":"https://api.github.com/users/mschoch/events{/privacy}","received_events_url":"https://api.github.com/users/mschoch/received_events","type":"User","site_admin":false},"created_at":"2018-05-07T11:25:21Z","updated_at":"2018-05-07T11:25:21Z","author_association":"OWNER","body":"@vandanaramesh14 please open new issues for questions like this, rather than commenting on already closed issues.\r\n\r\n1.  The \"fields\" capability returns all the stored fields you asked for, it has no knowledge of which fields were related to matching.\r\n2.  The \"highlight' feature will do what you want.  It figures out which fields had matches, and automatically performs result highlighting on them.\r\n3.  If highlight doesn't do what you want, there is another feature which is disabled by default.  You can set `IncludeLocations` to `true` in the SearchRequest.  This will return to the exact locations of all matches.  It makes the SearchResult much larger, which is why it is disabled by default, but it could be used to figure out which fields you want to show."}}
{"actor":{"display_login":"mschoch"}}