cancel
Showing results for 
Search instead for 
Did you mean: 

Searching lucene problem

monitloth
Champ on-the-rise
Champ on-the-rise
Hello,

I am searching for the nodes beginning with "Alf". I followed the document from http://wiki.alfresco.com/wiki/Search#Finding_Nodes_By_Type
While I used many variations, I did not yet get a result.What can the problem be?

String searchQuery = "@cm\\:name:Alf*";
      
      System.out.println("Searchquery: " + searchQuery);
      

      StoreRef storeRef = new StoreRef("user", "alfrescoUserStore");
      ResultSet resultSet = searchService.query(storeRef,
            SearchService.LANGUAGE_LUCENE, searchQuery);
      //System.out.println("groupName 1 =" + groupName);
      if (resultSet.length() == 0) {
         System.out.println("No result");
         return null;
      } else {…
Thanks by advance.
10 REPLIES 10

monitloth
Champ on-the-rise
Champ on-the-rise
MikeH, great it works now. Thanks.