A probabilistic detector is utilized to query a database. Utilization of a
probabilistic detector provides assurance with 100 per cent probability
that a search expression in the query is not in the database index. The
probabilistic detector is implemented in the form of a Bloom filter. The
probabilistic detector is created by hashing expressions in the database
index and mapping the resulting hash values into the probabilistic
detector. Upon receiving a query, expressions of the query are hashed.
The probabilistic detector is queried using these hash values. If the
results of querying the probabilistic detector indicate that searched for
information may be in the database, the database is not queried. If the
results of querying the probabilistic detector indicate that the
information may be in the database, the database is queried for the
information using the original query. This technique is advantageous in
mitigating detrimental effects of denial of service attacks.