FORUM-678 | [Forum] Optimized as in the lucene indexes the nodes when executes query - Fix build failed