A weak and/weighted and index engine