With the rapid increase of information, retrieval technology is becoming more and more important. At present, many retrieval techniques are based on index retrieval techniques. This paper studies the search and index technology of lucene and recalculated the similarity of Lucene result and query in the Vector Space Model to improve the sort location of long query search result through the improved index information and the improved method based on content.