Do Google Custom Search API Autocomplete feature increases the query limit? - autocomplete

Am using Google Custom Search API with 2000 queries/day. Am planning to enable Autocomplete feature for the Custom Search. Do autocomplete results increases the queries count or is this not consider in queries count?

The autocomplete feature doesn't count towards your daily limit. On the other hand, when you make a query with more than 10 results and you want to paginate over them, every pagination request counts towards your daily limit.

Related

Postgres pagination. Using the "Pagination" library. Works great for pagination for ALL records, BUT if I do a search I lose the search. And crash

Stack: Flask, Postgres and thousands of records. The "Flask-Pagination" library works great, looks cool, and lots of options. But documentation is not there. Once I do a "search" the pagination will not pass the search query back to Flask. And I crash.
Looking at the documentation, there must be a way to access and pass the search terms, but I'm not seeing it, and zero examples on line.
List of library attributes here: https://flask-paginate.readthedocs.io/en/master/
Example here. Search for Brain, you will get over 400+ responses but cannot get pass the first page if you want to pagination, 96 records at a time. Do a "Update" all and you can pagination through thousands of records.
Live example: https://www.hackingthevirus.com
Thanks, LOTS!
Used sessions. Allows for saving of the "search" value across multiple pages.

How to use overpass api?

I am a total newbie so this may be a silly question, but I can't find any tutorials on how to query overpass api to display things on own website. Do I install it on my server or is there a code to query it in the script?
What I want to achieve is to have a searchbar on one page to search for tags, and that would display one random point with that tag on the other page with a leaflet map.
But I am struggling to even display any points on it. Would it be actually better to have a local geojson file with set list of points in one town if I want to limit them to just this town anyway?
I will be grateful for any help, it's a first time I am doing something like this and it horribly stresses me out
You can visually run and try overpass queries using http://overpass-turbo.eu/.
In order to unload the overpass server, it would be a good idea to fetch the data once (and update regularly) and host them on your own server (also pay attention to the terms of use of the specific APIs, they might limit the number of requests per hour or prohibit using the for autocomplete).
To query the server from an application, GET from https://overpass-api.de/api/interpreter?data=, followed by your request (the same you would type into overpass turbo, just without line breaks).
It is also possible to host an overpass instance on your own.
If you need to learn the Overpass Query Syntax first, you can read the docs.

XPage rest service - can I search without using the full text index?

Xpage rest service searching is limited when searching because of full text index.
In our environment we have some rather large databases. In our grids we use xe:restService to surface data to a sencha grid framework. This works great... until you need to search the grid. The grid search works unless you get a result with a ton of data and hit the full text limit. We've raised the limit on the server to upwards of 100k only to have it crash during regular operation.
Are there any other options? I am not really sure what it would be but I though I would ask.

Using the TFS REST API to get all work items in an iteration

I am attempting to get some information about all User Stories in the current sprint. I can get the path to the current sprint easily, and given a list of the IDs for the work items I can get what I need from them, but I am unsure of how to get those IDs from just the iteration path.
I have seen an example of this using C# and queries, but I am using javascript and the REST API, and I would prefer not to user queries if possible.
The best way to achieve this is using queries which designed to help you find work items that you want to review, triage, update, or list in a report.
The Work Item Query Language is also supported with REST API. There is a Parameter [System.IterationPath] which meets your requirement.
More detail info please refer:
Programmatically query for work items
• REST APIs: Work item queries and query folders and Work item
query language
The only generic solution I could find was to get all work items ids by iterating all pages from Read Reporting Revisions
Then get bulks of work items from List Work Items
Unfortunately TFS/AzureDevops do not offer a shorter path without using queries.

Facebook api search without keyword

I'm working on an application that searches for events near you. I need to search everything of type event from a specific date to another one. So I use this graph API query:
search?q=cluj&type=event&since=2015-12-05&until=2015-12-06&city=Cluj-Napoca
Now the problem is the q= thing is annoying me more than helping since I don't get all the events cause I'm missing a keyword.
Now the question is how can I search for all events between those 2 dates since I need to have something there at all time?
The Graph API doesn't support such queries. But you can have a look at
https://github.com/tobilg/facebook-events-by-location
which uses a combined approach (Place search by location & events lookup by returned places).