Closed
Description
Create an index and populate it with two documents. Create an aliases with a filter, such that the alias contains one document.
A search using the alias will return one result.
A get document request using the alias can retrieve both documents.
This may confuse users: "why does this document not turn up in my search results", and makes it hard to implement a security model using aliases.
The UidField.loadDocIdAndVersion() method already uses a filter to check whether the document has been deleted. It would be possible to pass in the alias filter, if defined.