cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene Search - based on Category Aspect

abhishekghosh
Champ in-the-making
Champ in-the-making
hi,
Struggling to find the query for content search based on a specific Category.
e.g. : i have applied different Categories (Regions, Languages etc.) to different contents under my working space.
now i need to find the contents having say, Languages category aspect. So what would be the Lucene Search Query for that ?

need some urgent help pls.
3 REPLIES 3

diegoitaliait
Champ in-the-making
Champ in-the-making
var rpath = "/cm:categoryRoot/cm:generalclassifiable";
var query2= "+PATH:\"" + rpath + "//*\" -TYPE:\"cm:category\"";

rajvael
Champ in-the-making
Champ in-the-making
This query returns list of category in the system. Not file or space associated to the categories. Please any body know how can I search content based on categories using lucene.

rajvael
Champ in-the-making
Champ in-the-making
PATH:\"cm:generalclassifiable/cm:<<ur_search_category_name>>/member\" AND TEXT:\"<<ur_search_text>>\"

Hope it will help…