A searching method based on layout information is provided, the method includes: setting the searching condition with layout information; searching for the electronic file according to the searching condition with layout information. An apparatus corresponding to the above method is also provided.