AnsweredAssumed Answered

Searching lucene problem

Question asked by monitloth on Nov 5, 2008
Latest reply on Dec 5, 2008 by monitloth
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.

Outcomes