File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
internal/store/elasticsearch Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -39,13 +39,14 @@ type SearchConfig struct {
3939
4040// SearchResult represents an item/result in a list of search results
4141type SearchResult struct {
42- ID string `json:"id"`
43- URN string `json:"urn"`
44- Title string `json:"title"`
45- Type string `json:"type"`
46- Service string `json:"service"`
47- Description string `json:"description"`
48- Labels map [string ]string `json:"labels"`
42+ ID string `json:"id"`
43+ URN string `json:"urn"`
44+ Title string `json:"title"`
45+ Type string `json:"type"`
46+ Service string `json:"service"`
47+ Description string `json:"description"`
48+ Labels map [string ]string `json:"labels"`
49+ Data map [string ]interface {} `json:"data"`
4950}
5051
5152// ToAsset returns search result as asset
@@ -58,5 +59,6 @@ func (sr SearchResult) ToAsset() Asset {
5859 Service : sr .Service ,
5960 Description : sr .Description ,
6061 Labels : sr .Labels ,
62+ Data : sr .Data ,
6163 }
6264}
Original file line number Diff line number Diff line change @@ -257,6 +257,7 @@ func (repo *DiscoveryRepository) toSearchResults(hits []searchHit) []asset.Searc
257257 Title : r .Name ,
258258 Service : r .Service ,
259259 Labels : r .Labels ,
260+ Data : r .Data ,
260261 })
261262 }
262263 return results
You can’t perform that action at this time.
0 commit comments