cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene path query performance

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi,

Is there any alternative for Path query in Lucene?

We have a huge repository in which the documents are stored in hierarchical spaces and we want to search for a space in this hierarchy. The space that we search could be in any sub-folder under the root folder which we'll not know in advance. Hence we fire a lucene path query at the root folder and it takes about 3-4 secs, but when the path is not included and if we just search in the entire repository for a space, the results comes back quickly.

PATH:"/app:company_home/cm:Products/cm:Product-1//*" AND (TYPE:"cm:folder") AND @cm\:name:"TEST-1"

We have seen similar threads in the forum regarding the Path query performance. Is there an alternative way of doing this kind of a search without compromising on the performance.

Thanks in advance,
jjacob
2 REPLIES 2

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

Find you docs by some other way - an attribute tag (which you could manage using rules)
Move to 4.0 and SOLR in which PATH search is much faster.

Andy

mitpatoliya
Star Collaborator
Star Collaborator
Type queries are I think faster then the PATH queries.
If you have custom content type and want to search with that only better go for that as it straight away filter all other contents.
Also try changing the sequence of conditions as this will also affect the performance.