How scoring computed in wildcard and prefix query