AnsweredAssumed Answered

Lucene file search not returning file properties

Question asked by rscottm on Mar 17, 2010
Hi!  Alfresco newbie here.  I'm using java code like this to search for files:



private static List<ISearchResult> perform(final ISearchConfig config) throws RemoteException {
  boolean INCLUDE_META_DATA = TRUE;

  RepositoryServiceSoapBindingStub repository = WebServiceFactory.getRepositoryService();
  Store store = new Store(WORKSPACE_STORE, ALF_SPACES_STORE);

Query query = new Query(QUERY_LANG_LUCENE, config.getQueryString());
QueryResult result = repository.query(store, query, INCLUDE_META_DATA);

return config.processSearchResults(result);
}



The query string is something like this:

+PATH:"/app:company_home/cm:Forms_x0020_Management_x0020_Solution//*" +@fms\:client:"HMN" +@fms\:product:"INSC"

and the search successfully finds files.

The problem is that the rows in the resultset don't contain file properties, neither standard or custom.  Nodes and aspect info, but no property info.  How do I get property info into the resultset?

Thanks!

Outcomes