lucene search does not work

cancel
Showing results for 
Search instead for 
Did you mean: 
yvanme
Member II

lucene search does not work

Jump to solution

lucene search does not work:

parametersSmiley TongueATH:"/app:company_home" AND TYPE:"cm:content"

I'm sure there's something,but the result is zero

1 Solution

Accepted Solutions
afaust
Master

Re: lucene search does not work

Jump to solution

The query in itself is guaranteed to never match anything. You are looking for a node at a very specific path that should be a document-like type without allowing the query to include any result below that path (e.g. files inside a folder). The path that you use explicitly addresses a folder, so by combining that with the type condition you get zero results.

The query should be:

PATH:"/app:company_home//*" AND TYPE:"cm:content"

(to match all documents anywhere below the Company Home node (root). But honestly speaking, if you perform that query you could also simply drop the path since in a standard Alfresco you will never find any cm:content in a different root path.

1 Reply
afaust
Master

Re: lucene search does not work

Jump to solution

The query in itself is guaranteed to never match anything. You are looking for a node at a very specific path that should be a document-like type without allowing the query to include any result below that path (e.g. files inside a folder). The path that you use explicitly addresses a folder, so by combining that with the type condition you get zero results.

The query should be:

PATH:"/app:company_home//*" AND TYPE:"cm:content"

(to match all documents anywhere below the Company Home node (root). But honestly speaking, if you perform that query you could also simply drop the path since in a standard Alfresco you will never find any cm:content in a different root path.