Hi,Can anyone help me out ..I am using web service to search a file in alfresco repository, here's the code:
RepositoryServiceSoapBindingStub repositoryService = WebServiceFactory.getRepositoryService();
// Create a query object, looking for all items with alfresco in the name of text
Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:" + searchText + "\"");
// Execute the query
final Store STORE = new Store(Constants.WORKSPACE_STORE, "SpacesStore");
QueryResult queryResult = repositoryService.query(STORE, query, false);
// Display the results
ResultSet resultSet = queryResult.getResultSet();
ResultSetRow[] rows = resultSet.getRows();
I am passing file name from a custom search page without extension as searchText
for ex: [just like search in alfresco DMS web client filtered on filename only]Suppose i have two files File1.txt and file1.pdf and i want to search both the files just by passing file1 as my searchTextI tried the same thing, query returns nothing. And when I tried searching as File1.txt, query returns the exact file.What could be the possible modification I should do with the above query to get my expected result.Any suggestion appreciatedThanks in advance