I am searching on an element called package, which has the field pkg_scope.
When I add the following string to my query I get 200 results:
AND ( pkg_scope:'Scope Undefined')
When I add the following string instead, I get one result:
AND ( NOT pkg_scope:'Top File')
The one result has a scope 'Scope Undefined'. I think it is reasonable to expect that the second query results would contain the results of the first one. Am I missing something ?
This is the complete query:
query: *:* AND rectype:'Package' AND isPublic:"Yes" AND ( NOT pkg_scope:'Top File' )
I am using ES 1.7.1