I have tagged and upload 40,00+ pdf files into DAM. I have built a search component using Query builder. The input for the search are "text", "tagid1", "tagid2". This needs to return me all the documents that have "text' in their content and have been tagged "tagid1" and tagid2.
If I use the Qurybuilder api, it take a very long time to do the search (more that 30 mins), which is practically unacceptable. I am not even sure if the content has been indexed.
Please let me know if there is a way to counter this.
I did try setting lucene index. It indexed for about two days. THen I ran my simple query to search for a text in 150 documents. It returned me the result in 190 seconds, which is again not ideal.
I am not sure if I need to use the index search explicitely or the querybuilder will take care of it.
If you are using AEM 6.x you need to index it explicitly. refer  to see how you can configure your indexes