cancel
Showing results for 
Search instead for 
Did you mean: 

webscript for display the advance search result on categorie

mgovind
Champ in-the-making
Champ in-the-making
hi!!
Is this possible to display the advance search(search by title,description…) results on categories basis on result page????
suppose i have two category A,B if i am searching content which title is 'c' then result should be display in form…..

                    [size=150]A[/size]
                                   c

                    [size=150]  B[/size]
                                   c

please help me……………..
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
Yes, although after you get the results, you'll have to do some manipulation of results. 
   http://wiki.alfresco.com/wiki/JavaScript_API#Search_API

The search API only returns a list of nodes.   Using Lucene, you can constrain the search to the appropriate Categories (Using PATH element):

   - you have to interogate the returned ScriptNodes and sort them appropriately inside your javaScript. Then you can display them whichever way you want. 

A less performant (but faster to implement) way would be to perform multiple searches, one for Category A and another for B, and then display the results.