Code based indexing

Big change. Now product items are indexed based on code.