Content of the material
- Search within only one website with this tip
- Google Custom Search
- #2 Try using Chrome Better History extension
- How to Search Multiple Websites at the Same Time
- Structured Search in the Programmable Search Element
- How to Delete Google Search History
- Example to Date Criteria in Query Function [Use of Date in Query Function Where Clause]
- Query Formula 1
- Query Formula 2
- Query Formula 3
Search within only one website with this tip
By Tim Fisher Tim Fisher Facebook Twitter Senior Vice President & Group General Manager, Tech & Sustainability Emporia State University Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the VP and General Manager of Lifewire. lifewire’s editorial guidelines Updated on January 6, 2022
Google Custom Search
One alternative could be to create your own search engine with Google Custom Search as it allows to search the entire web and include results sorting.
- Custom Search Help
- Search the entire web – Custom Search Help
- Search Features > Sort results – Custom Search Help
- Filter your search results – Search Help
#2 Try using Chrome Better History extension
Chrome Better History is an 82KB extension that allows you to sort Google Chrome’s history by date. This extension basically replaces the default history page (Ctrl+H) with its own configuration where you can jump into a certain date easily.
The beauty of this extension is it doesn’t act as a spyware as the extension itself was an open-source project. However, you probably won’t be pleased by its interface that looks quite old — a similar style from Chrome in 2012.
How to Search Multiple Websites at the Same Time
Similar to searching through a single website, Google lets you duplicate the command to search through multiple domains at once. Essentially, it's as if you're running a typical search across the entire web, but instead of sifting through the plethora of websites out there, you're limiting the results to the few that you really want to pay attention to.
For example, here's a search you could perform to find everything that Lifewire and NASA has on electric vehicles:
The trick to get this to work is to employ OR. This gives Google permission to list either source. If you don't add this to the search, you'll get zero results.
Just like we did above with the single site search, you can tack on several other search parameters. Here's a longer example that further constricts the results:
Structured Search in the Programmable Search Element
Structured search features can also be used in conjunction with the Google Programmable Search Element. Just like with the operators expressed in the query or URL parameters, structured search in the element first requires that the pages you are searching over be marked up with the attributes you want to search by; then the Programmable Search Element’s
sort operator combined with
more:pagemap: operators in the query will sort or restrict search results appropriately.
For example, SignOnSanDiego.com, a California news portal, uses the Programmable Search Element to render recent stories with photos in the results:
To ensure readers see not only the most relevant, but also timely news, SignOnSanDiego uses the Bias by Attribute with a “strong” weight towards recent publication dates. SignOnSanDiego implements these date attributes with PageMaps; one used by SignOnSanDiego looks like this:
To apply Sort by Attribute over this field, you set the
sort option in the search code for the Programmable Search Element as shown below:
Just like the URL
&sort= parameter described above, the sort option in the Programmable Search Element
<div class="gcse-search" sort_by="date-sdate:d:s"></div> takes a combined attribute name, like
date-sdate, and several optional parameters separated by colons. In this case, SignOnSanDiego specified sorting in descending order
d using the strong bias
s flavor of the operator. If you don’t provide qualifiers, the default is to use a descending order with a hard sort, just as it is in the URL operator case.
The sort option also enables the Restrict by Range feature. For example a site like SignOnSanDiego might enable users to search for articles published between August 25 and September 9 in 2010. To implement this, you can set the sort options to
date-sdate:r:20100825:20100907. This again uses the combined attribute name
date-sdate, but instead restricts to the range
r of specified values
20100825:20100907. As with the URL parameter, you can omit the upper or lower item of the range in the
sort option of the Programmable Search Element.
Another powerful feature of the sort option is that you can combine Sort by Attribute and Restrict by Range. You can combine multiple operators in the sort option using a comma. For example, to combine SignOnSanDiego’s strong bias with the above date restrict, you would specify
date-sdate:d:s,date-sdate:r:20100825:20100907. This feature can combine distinct attributes; for example, a movie review site might display the most highly rated movies released within the last week with the option
Please refer to this page for all supported attributes.
You can also use Filter by Attribute with the Programmable Search Element. For example, take our earlier example with pages that had
linked-blog attributes; to create a custom search control that only returned pages that linked to use the following code to inject a
more:pagemap:linked-blog:blogspot operator into every query:
This method is relatively inflexible because it adds a restriction to all queries issued from this control. To see other options, consult the documentation on the Programmable Search Element.
How to Delete Google Search History
How to Delete Google Search History by Date:
In Google My Activity window, you can follow the guides above to filter history by date, and click Delete button to delete the results matching your search and filter.
You can also click Delete activity by in the left panel to select Last hour, Last day, All Time or Custom range to delete your Google activity by date.
You can also search in the activity search box to filter specific browsing results, and click the three-dot icon to select Delete Results to delete the items matching your search.
How to Delete Usage History (App, Google, Firefox) in Windows This post tells how to delete app usage history, delete all browsing history on Google, Firefox, Edge, IE, etc. in Windows 10/8/7 with step-by-step guide. Read More
How to Clear All Google Search History:
To delete all Google browsing history, you can click Delete activity by in the left panel of Google My Activity page and select All Time and All products, and confirm to delete all your Google history.
Another easy way we frequently use to clear all browsing data in Chrome is to click the three-dot icon at the upper-right corner, select More tools -> Clear browsing data. In the pop-up window, you can select All Time and tick all options to clear all Google Chrome history.
Example to Date Criteria in Query Function [Use of Date in Query Function Where Clause]
To know how to use date criteria in Query function in Google Sheets, follow the below tutorial.
Sample Data. Should be entered in Cell ranges A1: F16.
As a side note: Are you curious to know how I created the above interactive table? Then follow this tutorial.
You got the sample data above. Now see some of the formulas below where date as criteria. Also “sourcemaster” in the below formula is the named range of data. You can instead use sheet reference directly like “Sheet1!A1: F16”
Query Formula 1
In this Query formula, I’ve used the date directly like text.
=query(sourcemaster,"select A,B,C,D,E,F where F = date '2010-08-30'")
Query Formula 2
Here I used the date criteria in Query function to select date difference. Here also the date directly used.
=query(sourcemaster,"select A,B,C,D,E,F where F > date '1990-1-1' and F < date '2000-12-13'")
Query Formula 3
=query(sourcemaster,"select A,B,C,D,E,F where F = date '"&TEXT(H2,"yyyy-mm-dd")&"'")
Here the criteria H2 is a cell reference and in that cell, there is a date we put to use as criteria. As already told we can not include date directly in Query. So in the above formula the date we converted to text.
The alternative option is to convert the date in cell H2 as a text string in another cell for example, in cell H3. Then use that cell reference as below.
select A,B,C,D,E,F where F = date'"&H3&"'")
You can follow the long-winded or compact method of date conversion for this which is already mentioned at the beginning of this tutorial.
All the above three formula results will be looking like as below, that in the above formula order.
Hope you understand. Any doubt please drop in comments.