Mining photographic collections to enhance the precision and recall of search results using semantically controlled query expansion