Autocomplete testing on Azure Search explorer - autocomplete

I am trying to build and test the auto complete feature on a master item lookup tables using Azure Search (for a ASP MVC application). The search index was done with the suggesterName SG set to ItemDisplayName
I was looking to test it first on Azure portal- so that I could aim to replicate the results via code. This is because the results I am getting in code are quite unexpected
As I type the substring the itemDislayName, the expectation was that upto 5 selected names will be displayed
On the portal, I tried a query string of
search=str&suggesterName=SG
with the base request URL containing the index, api version and sugestorName-but I don't get results of items containing 'str' and with the fuzziness as below
Could you please guide around
[1] how I can get suggestor output in azure portal-search explorer
[2] can I control fuzziness using queryType and ~1,~2
I was referring to these 3 links
1) https://learn.microsoft.com/en-us/rest/api/searchservice/suggestions
and
2) https://channel9.msdn.com/Shows/Azure-Friday/Azure-Search-103-Azure-Search-Suggestions-with-Liam-Cavanagh
3) gunnarpeipman.com/2016/07/azure-search-suggesters/

Azure Search Portal doesn't support the Suggestion API yet. You will need to use an HTTP client like Fiddler or Postman.
Make sure you use the right URL for you Suggest requests:
https://[service name].search.windows.net/indexes/[index name]/docs/suggest
Please use our User Voice page to vote for adding the Suggest API to the Portal: https://feedback.azure.com/forums/263029-azure-search

Related

Azure DevOps rest api - Get work item by custom field

I am currently migrating from tfs 2015 to Azure DevOps, and I would like to use the REST Api services to get work items. In TFS were an option to include custom fields as filter in the http query to list work items, (e.g. there are many work items with custom field 'otherId', i want to list all the work items which otherId field value equals to 5) but in the Azure Devops api documentation i cannot find description about how to do this.
If it is possible, could you give me an example?
Tried to google it, read devops api documentation but i have not found any solution
You may use Query By Wiql. Your request may be like this:
POST https://TFS_SERVER:PORT/PROJECT/_apis/wit/wiql?api-version=7.1-preview.2
{
"query": "Select [System.Id] From WorkItems Where [YourCustomPath.otherId] = 'OTHER_ID'"
}
Check the example:
https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/wiql/query-by-wiql?view=azure-devops-rest-7.1&tabs=HTTP#examples
Additionally, check the API version here: API and TFS version mapping

Microsoft Graph API: How to get url for Task in Planner?

I am using planner task API from Microsoft Graph APIs to get details of a task created in planner. Is there any way to Teams client URL for task from Graph APIs? In the API response I don't see any property like webUrl which can be seen for other resources. Does Microsoft provide URLs for planner tasks in Graph API?
If it is not supported, can I build URL programmatically?
The task URL copied from Teams client appears to have below format:
https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.planner/tt.c_{channel id}p{planner id}_h_1660906395123?tenantId={tenant id}&webUrl=https%3A%2F%2Ftasks.teams.microsoft.com%2Fteamsui%2FpersonalApp%2Falltasklists&context=%7B%22subEntityId%22%3A%22%2Fboard%2Ftask%2F{task id}%22%2C%22channelId%22%3A%22{channel id}%22%7D
The string 1660906395123 after h_ looks like some timestamp. Does anyone know what this timestamp is?
There is no supported way of programmatically getting the task url to the UI right now. Any method you find to be working can (and likely will) break without notice.
The value you are asking for is obtainable for a tab in the channel if you look inside the entityId of the configuration property of the tab (teams/{teamId}/channels/{channelId}/tabs).
If you copy the link to the task from the task app (instead of the channel tab) you get a different URL which seems to be easier to work with (still needs the channel id, but not the tab information).

How to get an asset all details in AEM with API request?

I am using AEM API in my automation. We published a file from workfront to AEM. That file have multiple information:
1. Basic
2. Test1
3. test2
4. etc
When I hit the api:
/api/assets/..../abc.pdf.json
I am getting very less information under the properties and metadata section. (In short, it does not have Test1, Test2 and other tab information)
Is there any way to fetch all these from aem API's? It will reduce my overhead to validate these details from UI Automation.
First of look checkout the metadata nodes of file for the desired data to be present. I would rather prefer writing a custom servlet in AEM which takes in path parameter as an asset path and gives back the response back in desired format.
I figured it out.
The following API returns all the JCR content in API response:
<baseURL>/content/dam/path to that file.-1.json

What is the ALM REST URL for the list of users under a project

I am trying to get the users which are availale for assignment under an ALM project. The same list of users you get when you click the "Assigned to" and "Assigned to (name)" headers in the browser client of ALM.
I have searched around the web trying to find a resource for this, but without luck. I have also tried to guess, e.g. like:
https://url/qcbin/api/domains/domain/projects/project/users or https://url/qcbin/api/domains/domain/projects/project/accounts etc.
Using ALM 12.21
Anyone knows?
Please have a look at the customization command, for instance:
Description
The data on the specified project user.
URL
/qcbin/rest/domains/{domain}/projects/{project}/customization/users/{user name}
Operation to be performed is a GET in this case. You can refer to the REST API documentation.
This gives you the project users. Hope this clarify your query! Have a nice day.

How to get "Document status" data through REST API with Apache ManifoldCF

We're using Apache ManifoldCF. In Admin UI there's report at Status Reports -> Document Status.
Is it possible to get that content through ManifoldCF's Restful API?
The closest thing I've found is org.apache.manifoldcf.crawler.RunDocumentStatus under Control via Commands but I haven't been able to figure out if that can be used through HTTP API (instead of direct Java code)
No, currently you cant if you are looking to find a status of a single document. but if you want to get the status of queue for a connection you can using
repositoryconnectionquery/< encoded_connection_name >.