Hello, could someone guide me what am I doing wron...
# community-help
p
Hello, could someone guide me what am I doing wrong? I cannot get stopwords working. They do work in https://bfritscher.github.io/typesense-dashboard, however not in mine application
Copy code
import { typesenseConfig } from "@/config/typesense";
import TypesenseInstantSearchAdapter from "typesense-instantsearch-adapter";
import { InstantSearchNext } from "react-instantsearch-nextjs";

export const typesenseInstantsearchAdapter = new TypesenseInstantSearchAdapter({
    server: typesenseConfig,
    additionalSearchParameters: {
        query_by: "name",
        exclude_fields: "embedding",
        stopwords: "stopword_set1"
    },
});

const searchClient = typesenseInstantsearchAdapter.searchClient;

export function SearchProvider({ children }: { children: React.ReactNode }) {

    return (
        <InstantSearchNext
            searchClient={searchClient}
            indexName="products">
            {children}
        </InstantSearchNext>
    )
}