AnsweredAssumed Answered

Lucene path query performance

Question asked by unknown-user on Nov 29, 2011
Latest reply on Feb 15, 2012 by mitpatoliya
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

Outcomes