title: Searching a document based on category in Alfresco
body: <p>I am executing a lucene search to look for documents with a particular category. 
  My category hierarchy is like this:
  Root category:
  - Company Documents
     - GAW</p>
  
  <p>After referring to the search API Alfresco documentation, I tried the following queries:</p>
  
  <pre><code>+PATH:\"//cm:GAW//*"
  
  +PATH:\"/cm:generalclassifiable//cm:GAW//*"
  
  +PATH:\"/cm:generalclassifiable//cm:GAW/member"
  
  +PATH:\"/cm:generalclassifiable//cm:GAW//member"
  </code></pre>
  
  <p>But the document is not found. I am running a JavaScript for the search. 
  These documents are located in sub-folders with deep folder levels but have category as "GAW".
  Can anyone help me in pointing to the right syntax?</p>
  
  <p>What would be the syntax to search by folders. It is located within a sub-folder GAW inside document library of a site.</p>
  
  <p>Thanks!</p>