Get total index documents - azure-cognitive-search

I need to show on Azure Dashboard the total of the index documents and it's possible to get the total of documents using the following rest api:
Get https://.search.windows.net/indexes//docs/$count?api-version=2021-04-30-Preview
Can anybody explain how I can show the result on Azure dashboard?
Thank you guys!

Related

Azure Search Design Question: Omit result if User has seen this result

I'm trying to design a solution where I don't have to use the SQL Server Database to answer a question: Show me Azure Index search results where the user has never seen this search result.
I can keep track of user document "views" in my SQL database, but how do I extend this functionality to Azure Search Index queries?
I mean I could do a $filter where document id is not in (1,2,3,etc), or I could filter the Index results before the user ever sees them from the server.
I'm just wondering if there's a more clever way to do this?
Thanks for your help!
Best way to achieve this is the first option you mentioned, once the first query comes on that user session, you can save which document ids were returned and then create a filter to exclude those ids for subsequent queries on the same session.

How to query data based on user location with Firestore?

I'm making a mobile app with React Native and Cloud Firestore and I'm having trouble querying data from the Firestore database.
I have a collection of restaurants documents that contains address data in firestore. I want to only read few(around 15) of them which is closest to the current user location. After querying, I will display them in the list. I'm thinking of using Haversine formula to query the documents with closest location. However, I have realized that only simple comparison is possible when using simple query methods. I have no idea how to read only those few documents without having to go through all the documents. What will be the solution? Thank you for your time in advance! Note that I'm very new to Firestore and coding in general.

Get email count of search results in Gmail API

I am implementing email functionality using PHP using Google API PHP SDK and I want to get total count of emails for search result.
I managed to get email count of inbox, sent mails, specific labels etc. but there is no option to count total number of emails in the search result.
Please help me.
Thanks.

Salesforce reports filter limit

I am tring to build reports in salesforce which need around 30 filters to be applied. Salesforce has a limit of 20 filters as per first row of this page -
https://help.salesforce.com/apex/HTViewHelpDoc?id=limits_analytics_per_edition.htm&language=en_US
Apart from writing these reports in apex/visulforce from scratch, is there any other alternative to workaround this limit?
Thank you in advance!!

Amazon MWS API - How do i get detailpageurl, product reviews, totalresult count

I have integrated the Amazon MWS api.For searching matching products from amazon i have used ListMatchingProducts as operation. I got the response as XML but in XML Some of the information isn't provided by the Amazon MWS API is there any other way to get it? The following information is not able to get from api response xml.
How do we get more pages of results beyond the first page? Right now we only get the first.
We cannot find big images for products, only getting small images
We cannot find the detailpageurl for products.
Where do we get the description? The only thing we are able to pull right now is the product "Features" but no description.
How do you search by Amazon nodes? All we see is search by keywords, but we use nodes all the time in the old Amazon PA-API.
For larger images, you can substitute out the numbers following "_SL" in the image name for the desired width. ie: SL160.jpg becomes SL400.jpg for a 400px width image.
A quick version of the detail page URL can be constructed by appending the ASIN to http://www.amazon.com/dp/
I don't think the other functionality that you desired is available through the MWS Products API.

Resources