1. A method for training a semantic indexing model comprising: providing a search engine with a first query; receiving a set of documents of a plurality of documents related to the first query from the search engine; generating, by at least one hardware processor, an expanded query by merging at least a portion of a subset of the set of the documents with the first query; and training the semantic indexing model based on the expanded query.