02-22-2017 05:23 AM
lucene search does not work:
parametersATH:"/app:company_home" AND TYPE:"cm:content"
I'm sure there's something,but the result is zero
02-22-2017 07:50 AM
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.
02-22-2017 07:50 AM
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.
10-21-2020 12:18 PM
Hello Afus master,
i have a similar problem.
My lucene query is:
+PATH:"/app:company_home/myFolder/* " AND ( KEYWORDS\:"with")
In myFolder there is a file text with this content:
Document with attachment.
The query does not return the file.
Buf, if i use this query:
+PATH:"/app:company_home/myFolder/* " AND ( KEYWORDS\:"with attachment")
or i use this query:
+PATH:"/app:company_home/myFolder/* " AND ( KEYWORDS\:"Document with")
The query return the file.
What could be the problem?
Thank you,
Giuseppe
10-21-2020 06:02 PM
The word "with" is a stop / fill word. It is so common that it is "worthless" from a search perspective. For that reason, it is transparently filtered out both during indexing and querying. That is why you only find your document when you add additional search terms - you are only matching on those, not ther combination with "with".
Explore our Alfresco products with the links below. Use labels to filter content by product module.