Use iterators on both vectors. The first iterator will iterate through indexWord objects and the second iterator will iterate through your int vector in the objects. But this structure is also suited to a map. Key off the map on the string value and the map value will be the vector of integers.
Code:
typedef std::vector<int> IntVector;
typedef IntVector::iterator IntVectorIter;
typedef IntVector::const_iterator IntVectorConstIter;
typedef std::map<std::string,IntVector> MapObject;
typedef MapObject::iterator MapObjectIter;
typedef MapObject::const_iterator MapObjectConstIter;
MapObject AllObjects;
//Iterate through map
MapObjectIter map_iter(AllObjects.begin());
MapObjectIter map_end(AllObjects.end());
while (map_iter != map_end)
{
IntVectorIter vector_iter(map_iter.second.begin());
IntVectorIter vector_end(map_iter.second.end());
while (vector_iter != vector_end)
{
//Do something with vector_iter
}
}