cancel
Showing results for 
Search instead for 
Did you mean: 

Where's the 'advanced search' java codes resident?

jointech
Champ in-the-making
Champ in-the-making
In the alfresco explorer page, user enter "advanced search" page(advanced-search.jsp), when user click the search button, the back will call org.alfresco.web.bean.search.AdvancedSearchDialog.search() method:
      ……
      // set the Search Context onto the top-level navigator bean
      // this causes the browse screen to switch into search results view
      this.navigator.setSearchContext(search);  
      return OUTCOME_BROWSE;

but i cannot found where's the search java code before return  OUTCOME_BROWSE;
3 REPLIES 3

ditmgl
Champ in-the-making
Champ in-the-making
You can find the .java file in this sdk directory:

Web-client/source/java/org/alfresco/web/bean/search

I hope this will help you.

jointech
Champ in-the-making
Champ in-the-making
Yes, I got this java file. but i cannot found the seach java code resident before "return OUTCOME_BROWSE;"?

chiranjeevi
Champ in-the-making
Champ in-the-making
in org.alfresco.web.bean.search.SearchContext.java file, buildQuery() method is generating the query based on the values given in the search.

    While displaying the search results , getContent() in org.alfresco.web.bean.BrowseBean method is calling.

    inside getContent() one more method searchBrowseNodes() is calling. In searchBrowseNodes() method based on the search query prepared by buildQuery() in SearchContext.java, it's hitting the database and getting the results.

    Hope this will be help you.