changed subnetwork query to used Lucene index.