{"openapi":"3.1.0","info":{"title":"OpenAPI definition","version":"v0"},"servers":[{"url":"https://modular-rest-prod.aws.idc.com","description":"Generated server url"}],"tags":[{"name":"loggingSearchClick","description":"the loggingSearchClick API"},{"name":"search","description":"the search API"},{"name":"internal-search","description":"the internal-search API"}],"paths":{"/search/v1":{"post":{"tags":["search"],"summary":"Search endpoint","operationId":"submitSearchRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Search Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}}}}},"/search/planned":{"post":{"tags":["search"],"summary":"Planned Research search endpoint","operationId":"submitPlannedResearchSearchRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Search Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}}}}},"/loggingSearchClick/v1":{"post":{"tags":["loggingSearchClick"],"summary":"Endpoint for logging search clicks","operationId":"submitSearchClickLog","parameters":[{"name":"params","in":"query","required":true,"schema":{"$ref":"#/components/schemas/LoggingRequest"}}],"responses":{"default":{"description":"Default error sample response"}}}},"/internal/search/v1":{"post":{"tags":["internal-search"],"summary":"M2M search endpoint for calling the Search API on behalf of a specific user","operationId":"submitInternalSearchRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalSearchRequest"}}},"required":true},"responses":{"200":{"description":"Search Result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"default":{"description":"unexpected error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}}}}},"/search/v1/typeahead":{"get":{"tags":["search"],"summary":"Endpoint for searching typeaheads by the specified text","operationId":"searchTypeahead","parameters":[{"name":"typedText","in":"query","required":true,"schema":{"type":"string"}},{"name":"numberOfResults","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"200":{"description":"successful operation","content":{"application/json":{"schema":{"type":"object","items":{"type":"string"}}}}},"default":{"description":"Default error sample response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}}}}}},"/api-doc":{"get":{"tags":["api-doc-controller"],"operationId":"produceApiDoc","responses":{"200":{"description":"OK","content":{"application/x-yaml":{"schema":{"type":"string","format":"binary"}}}}}}}},"components":{"schemas":{"AttachmentDto":{"properties":{"id":{"type":"integer","format":"int64"},"fileType":{"type":"string"},"fileName":{"type":"string"},"getaType":{"type":"string"},"elementID":{"type":"integer","format":"int64"},"downloadUrl":{"type":"string"}}},"Author":{"properties":{"fullName":{"type":"string"},"containerId":{"type":"string"}},"required":["fullName"]},"Facet":{"properties":{"id":{"type":"string"},"parentId":{"$ref":"#/components/schemas/JsonNullableString"},"class":{"type":"string","enum":["Document Type","Topics","Region","Language","Companies","Analysts","Subscription Services","Verticals","Audience Type"]},"displayName":{"type":"string"},"count":{"type":"integer","format":"int32"},"selected":{"type":"string","enum":["Full","Partial","None"]}},"required":["class","count","displayName","id","selected"]},"JsonNullableFacetCategory":{"properties":{"present":{"type":"boolean"}}},"JsonNullableString":{"properties":{"present":{"type":"boolean"}}},"SearchHit":{"properties":{"class":{"type":"string","enum":["Research","Blog","Event","Data","IDC Product","Marketing","Press Release","Planned Research"]},"id":{"type":"string"},"detailLink":{"type":"string","format":"uri","description":"Link to getdoc, blog content or another web page."},"title":{"type":"string"},"synopsis":{"type":"string","description":"Brief description of an object with highlighted part in it"},"datePublished":{"type":"string","format":"date"},"tags":{"type":"array","description":"Tags of a document. It can be document subtype, or for events - Digital, In-person or both","items":{"type":"string"}},"indexName":{"type":"string"},"trackingRelativeUri":{"type":"string","format":"uri","description":"Relative uri that logs the click log on POST request"},"accessible":{"type":"boolean"},"authors":{"type":"array","items":{"$ref":"#/components/schemas/Author"}},"readingTime":{"type":"string"},"eventCoverage":{"type":"string"},"eventPlace":{"type":"string"},"eventRegisterLink":{"type":"string","format":"uri"},"eventStartDate":{"type":"string","format":"date"},"eventEndDate":{"type":"string","format":"date"},"product":{"type":"string"},"topics":{"type":"array","items":{"type":"string"}},"services":{"type":"array","items":{"$ref":"#/components/schemas/Service"}},"verticals":{"type":"array","items":{"type":"string"}},"price":{"type":"integer","format":"int32"},"attachments":{"type":"array","description":"Downloadable files attached to a research document. Used by clients to enable bulk \"Download as ZIP\" actions.","items":{"$ref":"#/components/schemas/AttachmentDto"}},"attachment":{"type":"boolean","description":"True if the research document has at least one non-PDF attachment."}},"required":["class","datePublished","detailLink","id","indexName","synopsis","tags","title"]},"SearchResult":{"properties":{"searchTerm":{"type":"string"},"hits":{"type":"array","items":{"$ref":"#/components/schemas/SearchHit"}},"facets":{"type":"array","deprecated":true,"description":"Now it's a mix of all facet categories. May require rework later to split by categories.","items":{"$ref":"#/components/schemas/Facet"}},"facetCategories":{"$ref":"#/components/schemas/SearchResult_facetCategories"},"page":{"type":"integer","format":"int32"},"pageSize":{"type":"integer","format":"int32"},"totalPages":{"type":"integer","format":"int32"},"tabs":{"type":"array","items":{"$ref":"#/components/schemas/Tab"}},"transactionId":{"type":"integer","format":"int64"}},"required":["hits","page","pageSize","searchTerm","tabs","totalPages","transactionId"]},"SearchResult_facetCategories":{"description":"Facet categories have a fixed order, although it is possible to exclude certain categories.","properties":{"documentTypes":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"topics":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"regions":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"languages":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"companies":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"analysts":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"subscriptionServices":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"verticals":{"$ref":"#/components/schemas/JsonNullableFacetCategory"},"audienceTypes":{"$ref":"#/components/schemas/JsonNullableFacetCategory"}}},"Service":{"properties":{"name":{"type":"string"},"containerId":{"type":"string"}},"required":["name"]},"Tab":{"properties":{"displayName":{"type":"string","enum":["All","Research","Data","Events","Blogs","IDC Products","Resources"]},"count":{"type":"integer","format":"int32"},"isActive":{"type":"boolean"}},"required":["count","displayName"]},"SearchRequest":{"properties":{"searchTerm":{"type":"string","description":"This is a specific word or combination of words that should be in results. An empty string is used to show all data. To exclude a word from a search, prefix it with a minus sign. SearchTerm in quotes must only return records containing the exact string, all words in that term could occur anywhere in the record.","maxLength":502,"minLength":0},"source":{"type":"string","description":"User source is used for usual search requests. These requests will be logged, and relevance will be calculated based on the these logs. In other cases, we should use technical source to avoid logging requests. Technical source is intended for internal use of search by services/applications.","enum":["user","technical"]},"page":{"type":"integer","format":"int32","description":"It is zero-based numbering, the initial page is assigned the index 0. (0 page is the first page instead of 1)."},"hitsPerPage":{"type":"integer","format":"int32"},"transactionId":{"type":"integer","format":"int64","description":"It is a unique set of numbers that helps to identify the search request in the logs. After the first user request without transactionId, the search generates transactionId, logs it, and returns it in the response. In the following requests, the user will use the received transactionId. If the user clicks on a result, the /loggingSearchClick endpoint must be called with the index of the result and the transactionId. This is then saved in click logs. If a request should not be logged transactionId will be -1."},"inTab":{"type":"string","enum":["All","Research","Data","Events","Blogs","IDC Products","Resources"]},"sortBy":{"type":"string","description":"The sortBy displays the ways hits are sorted. Relevancy is a sorting mechanism to only show the most relevant results for a user’s search instead of displaying all the records. Date sorting displays the most recent items from all documents. Future events first, sorted from closest to most far away (including those running at the moment). Then followed by past events, sorted from recent ones. asc/desc options are not available.","enum":["relevancy","date"]},"inSubscription":{"type":"boolean","description":"This filter only shows available no purchased products(blogs, events, press releases, free-to-download webinar event proceedings, factsheets) and user-owned content (including purchased documents). It also works for anonymous users."},"languages":{"type":"array","description":"Filter results by selected language codes. Selecting multiple languages will match all documents that contain one of the specified languages. Leaving the filter empty will allow all languages (default). The `xxx` value is reserved for languages that are not listed in the enumeration.","example":["eng"],"items":{"type":"string","enum":["eng","jpn","chi","kor","fra","deu","ita","por","spa","rus","xxx"]}},"documentTypes":{"type":"array","description":"Taxonomy IDs of content groups (document types). Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":["5_123","5_456"],"items":{"type":"string"}},"topics":{"type":"array","description":"Taxonomy IDs of topics. Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":["4_123","4_456"],"items":{"type":"string"}},"regions":{"type":"array","description":"Taxonomy IDs of regions. Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":["3_123","3_456"],"items":{"type":"string"}},"companies":{"type":"array","description":"Names of the companies","example":["Dell","Microsoft Corporation"],"items":{"type":"string"}},"analysts":{"type":"array","description":"Names of the analysts","example":["Arnal Dayaratna","Ali Zaidi"],"items":{"type":"string"}},"subscriptionServices":{"type":"array","description":"Subscription service names (also known as Product names) to which the document belongs. All Subscription service names are treated as strings. Typically, one document matches exactly one Subscription service, but the array can be empty or contain multiple items.","example":["European Customer Experience Management Strategies"],"items":{"type":"string"}},"verticals":{"type":"array","description":"Hierarchical taxonomy IDs of vertical markets.","example":["6_1090","6_1011"],"items":{"type":"string"}},"audienceTypes":{"type":"array","description":"Audience type values the document targets.","example":["Tech Supplier","Tech Buyer"],"items":{"type":"string"}},"documentIds":{"type":"array","description":"Document ids to filter results by. Only used by the Planned Research search endpoint (/search/planned). Matches any document whose id exactly equals one of the given values.","example":["AP47490521","US47941721"],"items":{"type":"string"}},"dateFrom":{"type":"string","format":"date","description":"Filter search results to ensure items are published after this date and events do not end before this date.","example":"2021-10-21"},"dateTo":{"type":"string","format":"date","description":"Filter search results to ensure items are published before this date and events start before this date.","example":"2021-12-21"},"datePublishedFrom":{"type":"string","format":"date","description":"Acts as an alias for dateFrom, except for events, which are filtered by event publication date.","example":"2021-10-21"},"datePublishedTo":{"type":"string","format":"date","description":"Acts as an alias for dateTo, except for events, which are filtered by event publication date.","example":"2021-12-21"},"userIdentifier":{"type":"string","description":"User identifier for unauthenticated user. Crafted value taken from GA cookie"},"synopsisLengthInWords":{"type":"integer","format":"int32","description":"Number of words of the synopsis field of the search result hit"}},"required":["inTab","searchTerm","source"]},"LoggingRequest":{"description":"The specified attributes will be logged after the click","properties":{"positionInResult":{"type":"integer","format":"int32"},"transactionId":{"type":"integer","format":"int64"},"algoliaQueryID":{"type":"string"},"algoliaObjectID":{"type":"string"},"indexName":{"type":"string"},"idcObjectId":{"type":"string"},"idcObjectClass":{"type":"string","enum":["Research","Blog","Event","Data","IDC Product","Marketing","Press Release","Planned Research"]},"userIdentifier":{"type":"string","description":"User identifier: GA cookie value for anonymous user with the cookie consent or absent for anonymous user without the cookie consent"}},"required":["algoliaObjectID","algoliaQueryID","idcObjectClass","idcObjectId","indexName","positionInResult","transactionId"]},"InternalSearchRequest":{"description":"Search request for the M2M endpoint. Extends SearchRequest with a required userId, since there is no per-user JWT to derive identity from. The server always overrides `source` to `technical` regardless of what is submitted here.","properties":{"searchTerm":{"type":"string","description":"This is a specific word or combination of words that should be in results. An empty string is used to show all data. To exclude a word from a search, prefix it with a minus sign. SearchTerm in quotes must only return records containing the exact string, all words in that term could occur anywhere in the record.","maxLength":502,"minLength":0},"source":{"type":"string","description":"User source is used for usual search requests. These requests will be logged, and relevance will be calculated based on the these logs. In other cases, we should use technical source to avoid logging requests. Technical source is intended for internal use of search by services/applications.","enum":["user","technical"]},"page":{"type":"integer","format":"int32","description":"It is zero-based numbering, the initial page is assigned the index 0. (0 page is the first page instead of 1)."},"hitsPerPage":{"type":"integer","format":"int32"},"transactionId":{"type":"integer","format":"int64","description":"It is a unique set of numbers that helps to identify the search request in the logs. After the first user request without transactionId, the search generates transactionId, logs it, and returns it in the response. In the following requests, the user will use the received transactionId. If the user clicks on a result, the /loggingSearchClick endpoint must be called with the index of the result and the transactionId. This is then saved in click logs. If a request should not be logged transactionId will be -1."},"inTab":{"type":"string","enum":["All","Research","Data","Events","Blogs","IDC Products","Resources"]},"sortBy":{"type":"string","description":"The sortBy displays the ways hits are sorted. Relevancy is a sorting mechanism to only show the most relevant results for a user’s search instead of displaying all the records. Date sorting displays the most recent items from all documents. Future events first, sorted from closest to most far away (including those running at the moment). Then followed by past events, sorted from recent ones. asc/desc options are not available.","enum":["relevancy","date"]},"inSubscription":{"type":"boolean","description":"This filter only shows available no purchased products(blogs, events, press releases, free-to-download webinar event proceedings, factsheets) and user-owned content (including purchased documents). It also works for anonymous users."},"languages":{"type":"array","description":"Filter results by selected language codes. Selecting multiple languages will match all documents that contain one of the specified languages. Leaving the filter empty will allow all languages (default). The `xxx` value is reserved for languages that are not listed in the enumeration.","example":"[eng]","items":{"type":"string","enum":["eng","jpn","chi","kor","fra","deu","ita","por","spa","rus","xxx"]}},"documentTypes":{"type":"array","description":"Taxonomy IDs of content groups (document types). Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":"[5_123, 5_456]","items":{"type":"string"}},"topics":{"type":"array","description":"Taxonomy IDs of topics. Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":"[4_123, 4_456]","items":{"type":"string"}},"regions":{"type":"array","description":"Taxonomy IDs of regions. Let users filter based on an element within a tree structure hierarchy. The filter already contains his child nodes on the parent node. After applying a filter (with Western Europe id), the user will see products in the same category (Western Europe) and also products in the subcategories (Austria, France, Germany).","example":"[3_123, 3_456]","items":{"type":"string"}},"companies":{"type":"array","description":"Names of the companies","example":"[Dell, Microsoft Corporation]","items":{"type":"string"}},"analysts":{"type":"array","description":"Names of the analysts","example":"[Arnal Dayaratna, Ali Zaidi]","items":{"type":"string"}},"subscriptionServices":{"type":"array","description":"Subscription service names (also known as Product names) to which the document belongs. All Subscription service names are treated as strings. Typically, one document matches exactly one Subscription service, but the array can be empty or contain multiple items.","example":"[European Customer Experience Management Strategies]","items":{"type":"string"}},"verticals":{"type":"array","description":"Hierarchical taxonomy IDs of vertical markets.","example":"[6_1090, 6_1011]","items":{"type":"string"}},"audienceTypes":{"type":"array","description":"Audience type values the document targets.","example":"[Tech Supplier, Tech Buyer]","items":{"type":"string"}},"documentIds":{"type":"array","description":"Document ids to filter results by. Only used by the Planned Research search endpoint (/search/planned). Matches any document whose id exactly equals one of the given values.","example":"[AP47490521, US47941721]","items":{"type":"string"}},"dateFrom":{"type":"string","format":"date","description":"Filter search results to ensure items are published after this date and events do not end before this date.","example":"2021-10-21"},"dateTo":{"type":"string","format":"date","description":"Filter search results to ensure items are published before this date and events start before this date.","example":"2021-12-21"},"datePublishedFrom":{"type":"string","format":"date","description":"Acts as an alias for dateFrom, except for events, which are filtered by event publication date.","example":"2021-10-21"},"datePublishedTo":{"type":"string","format":"date","description":"Acts as an alias for dateTo, except for events, which are filtered by event publication date.","example":"2021-12-21"},"userIdentifier":{"type":"string","description":"User identifier for unauthenticated user. Crafted value taken from GA cookie"},"synopsisLengthInWords":{"type":"integer","format":"int32","description":"Number of words of the synopsis field of the search result hit"},"userId":{"type":"string","description":"Id of the user to search on behalf of."}},"required":["inTab","searchTerm","source","userId"]}}}}