Search across collections

Query multiple collections at once. Results are ranked together regardless of which collection they belong to.


import { Etoile } from "@etoile-dev/client";

const etoile = new Etoile({
apiKey: process.env.ETOILE_PUBLIC_KEY,
});

// Search paintings and artists at the same time
const { results } = await etoile.search({
query: "van gogh",
collections: ["paintings", "artists"],
});

Related