We would like to search documents under the following rules:
- We have a list of words we would like to include in the search
- Not all the words in the list must be included in the document
- The document MUST NOT contain words which are not in the list.
Our list is: ('this', 'is', 'my', 'list', 'of', 'words')
Valid results are:
'this is my list'
'this is my list of words'
Invalid results are:
'this is a given list of words' (given was not in the list)
'list of books' (books was not in the list)
What would be the correct way to make this search?
How can I score the results in case I have ore than one?