jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius" <dbros...@mebigfatguy.com>
Subject debugging a query that returns no results
Date Fri, 28 Mar 2008 06:44:39 GMT
Greetings,


    When i do a search with a query string such as

//*[@jcr:primaryType = 'prm:File' and jcr:contains(@prm:Title, '"lazy"')] 
order by jcr:score() descending

it works as i expect. When however i limit the sub tree like

/prm:Projects/prm:Project3781/prm:Documents//*[@jcr:primaryType = 'prm:File' 
and jcr:contains(@prm:Title, '"lazy"')] order by jcr:score() descending

where the /prm:Projects/prm:Project3781/prm:Documents part is retrieved from 
a call to node.getPath()

nothing is returned


I've walked thru the code till i get to the lucene execute query, at which 
point i don't have source.

As a general question, are there any tips for figuring out why a search is 
returning no results 


Mime
View raw message