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.
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.