A Machine Learning Model for Information Retrieval with Structured Documents