Create Client for Existing Query

You can also create a new client for an existing query, enabling multiple independent consumers to poll the same query session.

Description Creates a new client for an existing query, enabling multiple independent consumers to poll the same query session.  
MethodPOST /api/v1/repositories/repo/queryjobs/id/newclient 
Request Data  
Response DataQueryResults 
Authentication Requiredyes 
Path ArgumentsDescriptionData typeRequired?
id ID of the query job stringrequired
repo Name of repository to be searched stringrequired
Return Codes 
200 Request complete  
400 Request is malformed and either missing critical fields or the JSON is badly structured  
500 Request failed  

This returns the structure shown in the following table, however only the id field will have a value, and so is the only field returned:

Table: Metadata JSON Object Fields

FieldTypeDescription
hashedQueryOnViewstring A string hash of the optimized query (the "query plan"). For advanced users.
idstring The id of the started queryjob. This can be used to poll results.
queryOnViewstring A string representation of the optimized query (the "query plan"). For advanced users.
staticMetaData If provided, indicates that the backend is running the query in a special mode, and may include information about the reason for selecting that mode.
        executionMode  The execution mode of the query.