cancel
Showing results for 
Search instead for 
Did you mean: 

Path in Lucene Search Query

tcordova
Champ in-the-making
Champ in-the-making
I'm not sure which forum to post this under, but…

I'm trying to execute a Lucene search using Web Services.  I want to get all results that match Name, Title or within the Text for all content that exists in a space and any of it's child spaces.

Here's the query I've constructed: 


PATH:"/app:company_home/cm:Policies_x0020_and_x0020_Procedures/cm:Legal_x0020_and_x0020_Compliance_x0020_-_x0020_Policies_x0020_and_x0020_Procedures_x0020_Manual/*" @cm\:name:"*policies*" @cm\:title:"*policies*" TEXT"*policies*"

Can anyone tell me what I'm doing wrong?  the Path statement seems to be working fine for content, but Spaces seem to be looking in both directions from the final space in the path.

In other words… all of the documents returned by the query exist either in the path specified or downstream from it, but I'm getting a Space that exists in on of the parent spaces.

Thanks in advance for any help I can get.
2 REPLIES 2

tcordova
Champ in-the-making
Champ in-the-making
Actually, further investigation shows that it looks like the PATH portion of this query statement is being ignored entirely.

andy
Champ on-the-rise
Champ on-the-rise
Hi

All the elements of the search are optional - so if any matches a node. the more things that match, the higher the score.

For mandatory bits prefic with +.

See http://lucene.apache.org/java/docs/queryparsersyntax.html

Andy