Article Title: Searching for multiple labels at same time on blogger Language: English Written by Yudhvir Singh Ahlawat One ...
Article Title: Searching for multiple labels at same time on blogger
Language: English
Written by Yudhvir Singh Ahlawat
One of the best feauture of blogger is to be able to sort out posts by adding different labels to them. On any blogspot blog, if you click on a label, it will search the entire blog for that one label.
But what if you want to search for several labels and retrieve articles that contain all those labels or any single one of them? Can we do that? Yes we can. There are two types of multiple labels searching that you would be looking for, based on two common operations i.e AND & OR operation.
For dummies: This means to search posts that have both the labels i.e LABEL1 & LABEL2.
Old Way: Using the url syntax given below
<blog-URL>/search/?q=label:LABEL1+label:LABEL2
New Way: It's quite easy to remember, but it’s also case sensitive. It actually works with more than two labels – I only tested it with three, so I’m not sure if there is a limit to the number of labels you can add in the URL.
<blog-URL>/search/label/LABEL1+LABEL2
2. OR Operation:
For dummies: This means to search posts that have LABEL1 or LABEL2 or both.
No new or easy way for it yet, old way is still there just replace "+" with "|" OR operator.
<blog-URL>/search/?q=label:LABEL1|label:LABEL2
Note: Problems may arrive when working with the labels that contains "multiple words", AND operation will work fine but you may not get any results for OR operation.