Multiple words search using closed list

We would like to search documents under the following rules:

  1. We have a list of words we would like to include in the search
  2. Not all the words in the list must be included in the document
  3. The document MUST NOT contain words which are not in the list.

For example:

Our list is: ('this', 'is', 'my', 'list', 'of', 'words')

Valid results are:
'this is my list'
'this is my list of words'
'my list'

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?


This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.