It seems that phrase query requires that all the terms/words should be present in the document. Is there a way to make lucene return the results of a phrase query with the given slop even if some of the words are missing in such a way that documents containing the larger fragments of that phrase closer to each other get higher score than those containing the smaller one with larger gaps between them? If not then is there any other method of implementing this?

Thanks in advance.