--> 17 Best 'Label' and 'Feed' Search Techniques in Blogger | Experience Lab - Online business creation and development guide for bloggers and startups

17 Best 'Label' and 'Feed' Search Techniques in Blogger

Today we will discuss various interesting ways of doing effective search in BlogSpot blogs. You will learn how to do search by category ,...

search techniques in bloggerToday we will discuss various interesting ways of doing effective search in BlogSpot blogs. You will learn how to do search by category, by query or even doing effective search inside feeds. You will also learn how to run a query for searching posts with multiple labels and you will discover how to search for a particular keyword inside posts tagged under a specific label using its Feed data. We will also learn how to sort search results by Date and index count. There is too much learning today!
In wordpress we call labels as Categories and sub categories as Tags but in blogger we are limited only to Categories which are termed as Labels.
DEMO: For Demo copy and paste the URLS given in this tutorial inside your browser and see the output yourself.

Syntax for Label search

Blogger databases are not visible to its users but users has the advantage of running certain queries to access the tables. With the introduction of Blogger API v3, you can now easily add running list of blog posts, pages and comments to a non-Blogger hosted site. Qasim will discuss this with you all in a post tonight. My job is to introduce you to simple search queries that can do wonders.
Label Search Syntax URL:
You may already know the below syntax.

Note: Labels are case sensitive. If a label names starts with an uppercase letter and you write a lowercase then the query will not return the result. If a label name is Social Media (first letters are capital) and you type social mEdia then it wont work. You must type the exact same letters
1. Searching a Label
Lets try searching for all posts nested under the label Social Media in our blog. The URL would look like the one below:
http://www.mybloggertricks.com/search/label/Social Media


2. Searching a keyword within a Label
I tried this but seems like Blogger doesn't support running queries within a label. For example lets search for all Facebook related posts under the category Social Media
Note: Spaces between labels can be denoted inside URLS with %20. You can write Social Media as Social%20Media also.

you will observe that though the query is executed but the results are same no matter whether you search for Facebook, twitter or anything. The following urls all return the same result.


  But wait! Can't we search a keyword inside a label at all? Well for that we will introduced a rarely discussed trick using Feeds. Click here
3. Running a simple Search query
Now lets search for a keyword inside entire blog posts. This is a query search that looks for a keyword in all posts irrespective of which label it belongs to.


Note again that spaces between keywords are denoted by %20.
4. Multiple Label Search
If you wish to search posts tagged under two labels, you will need to use the or operator (|) in order to do that. For that follow the syntax below:


Lets now search all posts containing the labels SEO and Social Media

Interesting? sure it is!
5. Sort Search Results  by Date
If you wish to sort the search result by date and time then you can easily do that with an extra parameter called by-date=true. It will display most recent entries first and oldest later.
Following is the syntax for displaying most recent posts on facebook

You might have observed that though this method returns most recent posts on facebook but it is also showing some irrelevant posts that doesn't contain the keyword facebook at all. Read the next method to understand why.
6. Sort Search Results by Relevance
By default search queries are displayed based on relevance. But when you sort results by date, relevance is destroyed. You can either remove the sorting parameter that we used early or set its value to false as shown below

7. Set Search Count
By default blogger display 20 posts at a time. If you wish to increase or decrease this number then use the parameter max-results=
The following query will return 50 posts based on query Facebook.


8. Set Search Results Count and Sort by Date
In order to sort posts by date and also set the post count to 5 then use the following syntax:

Syntax for Feed Search

The reason why you can easily download all your blog posts and comments and move them to another platform is because all your blog content is neatly stored inside atom or rss feeds. Consider feed as a repository containing all your blog content, be it posts, comments, pages or labels.
1. Posts FEED
A Feed containing all your blog posts has the following syntax:


2. Comments FEED
A feed containing all your blog comments has the following syntax:


3. Prevent Feed redirection to Feedburner
If you are redirected to feedburner then this means you are using feedburner to sent email updates to your subscriber. In order to prevent this use the parameter redirect=false as shown below:
Posts FEED
Comments FEED


4. Search Post Feed by Label
Now lets display all posts inside your blog feed containing the label SEO


5. Set Search Results count in Posts Feed
The following query will return 5 recent posts of your blog


6. Set Count while searching Posts Feed by label
The following query will display only 10 posts under the category/label SEO. No redirection parameter required here.


7. Set Search Results Count in Comments Feed
The following query will return 5 recent comments posted on your blog


8. Set Start Index and End Index in Posts Feed
Another interesting fact about feeds is that you can display posts from a specified index. For example If I want to display posts for SEO label and I want only to display the 10th and 11th post then I will set count restrictions as shown below:

The start-index tells where to start from and max-results show how many posts to display.


9. Search for a keyword within a Label in Post Feed
We already discussed that query parameters do not work in Label Search directly but we can utilize this method in Post Feed Label search method. Though logically this method does not literally means that we are filtering keywords based on label search, we are instead filtering two keywords. One is the label name itself and second is the query keyword. Both these keywords are highlighted below:

In the above query we are filtering the keyword Smartphone on all posts containing the word SEO. This is the only working method I could try and our coming widget is based on this search method which I am sure you will love a lot.

Need Help?

We tried explaining almost every single detail and we hope this tutorial may further help the blogger community. This is the most detailed post of its kind with some of the rarely shared query techniques. In my coming tutorials, I will try to dig deeper into core blogger XHTML structure and bring some more useful tips for you guys so that you may never stop developing your fancy blogs. Please let me know if you needed any further help with regard to any query. :)



Affiliate Marketing,12,Announcement,34,Bing,9,Bitcoin,38,blog,7,Blogger Resources,42,Blogger Templates,4,blogger tricks,156,Blogging ethics,70,Blogging tips,198,Bugs and Errors,34,Business,9,Copyright Violation,9,CSS and HTMLTricks,95,Designs,8,drop down menu,7,eBook,12,Email Marketing,7,Events,30,Facebook,30,Facebook tricks,49,Google,157,Google AdSense,42,Google Analytics,7,Google Plus,51,Google Plus Tricks,38,Guest Posts,112,home,2,How To,77,Internet,1,JSON Feeds,25,Kitchen Recipes,2,Label Based Sitemap Themes,1,Make Money Online,108,Marketing,16,MBT Blogger Templates,7,Menus,1,News,146,Pages,1,Posts,10,presentations,15,Responsive,10,Reviews,7,SEO,307,Settings,6,Shortcode,15,Sitemap Themes,1,Social Media,155,Technology,7,Templates,1,Tips,2,Tools,1,Traffic Tips,80,Video,19,Web Designing,62,web hosting,18,Webmaster Tools,97,Widgets,199,wordpress,26,
Experience Lab - Online business creation and development guide for bloggers and startups: 17 Best 'Label' and 'Feed' Search Techniques in Blogger
17 Best 'Label' and 'Feed' Search Techniques in Blogger
Experience Lab - Online business creation and development guide for bloggers and startups
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share. STEP 2: Click the link you shared to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy