Sunday, November 16, 2014

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, 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.

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: 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:|label:LABEL2

Lets now search all posts containing the labels SEO and Social Media|label:Social%20Media

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.
 Tip: This method was utilized on our Multiple Sitemap Generator Tool

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.

taken from here as personal notepad all copyright belong there.