postgres query and solr4 mods to support propagations