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.
http://ssfonlineblog.blogspot.com/search/label/label+Name
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 likethe one below:
http://ssfonlineblog.blogspot.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 MediaNote: Spaces between labels can be denoted inside URLS with %20. You can write Social Media as Social%20Media also.
http://ssfonlineblog.blogspot.com/search/label/Social%20Media?q=facebook
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.
http://ssfonlineblog.blogspot.com/search/label/Social%20Media?q=twitter
http://ssfonlineblog.blogspot.com/search/label/Social%20Media?q=tumblr
http://ssfonlineblog.blogspot.com/search/label/Social%20Media?q=googleplus
http://ssfonlineblog.blogspot.com/search/label/Social%20Media?q=blablabla
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.
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.http://ssfonlineblog.blogspot.com/search?q=mohammad
http://ssfonlineblog.blogspot.com/search?q=presentation%20by%20mohammad
Note again that spaces between keywords are denoted by %20.
No comments:
Post a Comment