A method of searching for objects in a second database using a query from
a first database includes receiving a first query from the first database
where the first query is generated using a collation associated with the
first database or user session or explicitly specified by users, where
the first database may be the same as the second database. The first
query is rewritten to form a second query which includes a superset of
the collation and a residue predicate which includes a predicate from the
first query. An index plan is adopted which targets an index associated
with the a multiple language collation expressed in the rewritten query.
The rewritten query is executed accessing the index and corresponding
data that align with the residue predicate. The total number of indexes
provided can be much less than the number of indexes needed if all
possible collations were individually indexed.