AnsweredAssumed Answered

Any idea why this Lucene search returns nothing?

Question asked by jcblitz on Oct 25, 2007
Latest reply on Oct 25, 2007 by jcblitz
I'm new to Alfresco and Lucene. I gave a read through but I don't see anything obvious of why this isn't returning anything.

I'm modifying the example for the Web Service.

I've created the Query of
Query query = new Query(Constants.QUERY_LANG_LUCENE, "path:'/app:company_home/cm:" +ISO9075.encode("Pathology Reports")+"/*'");

but it's returning with "No query results found."

If I run the (almost) default query the example came with
Query query = new Query(Constants.QUERY_LANG_LUCENE, "TEXT:'pathology'");

one of the results is "row 1: {}path = /{}company_home/{}Pathology_x0020_Reports/{}_x0033_3-AML_20Form_20v1.pdf" which is what I'm trying to mimic with my query. Essentially get me everything in that path. Can anyone see what's wrong with my query?