jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kennedy <da...@us.ibm.com>
Subject Simple queries failing
Date Thu, 27 Apr 2006 19:10:45 GMT
I am trying to execute very simple queries using the default repository 
setup and the queries are failing:

Here is how I'm getting the QueryManager and executing the query

    String statement = "/Perf";
    QueryManager queryManager = (QueryManager)workspace.getQueryManager();
    Query query = queryManager.createQuery(statement, Query.XPATH);
    QueryResult qResult = query.execute();
    NodeIterator iter = qResult.getNodes();
    System.out.println("Query = " + statement + "      #hits = " + 
iter.getSize());

The iterator size is always 0.   My hierarchy starts with /Perf and there 
are many nodes below Perf.  I have  a repository explorer that displays 
the hierarchy and confirms the nodes are there.  Is there something I'm 
missing?  Where would you begin to debug this?  I've traced it to the 
LuceneQueryBuilder, but haven't gone much further.  How can I determine 
what's in the indices?

David
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message