Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up Algolia search configuration #79

Open
anngvu opened this issue Feb 28, 2024 · 1 comment
Open

Set up Algolia search configuration #79

anngvu opened this issue Feb 28, 2024 · 1 comment
Assignees

Comments

@anngvu
Copy link
Contributor

anngvu commented Feb 28, 2024

The Algolia search shows indexed content as null, which explains why there are no results. Look into how to do the configuration correctly and document. Linked to #74.

@anngvu
Copy link
Contributor Author

anngvu commented Feb 29, 2024

(Original)

      recordExtractor: ({ helpers }) => {
        return helpers.docsearch({
          recordProps: {
            lvl1: ["header h1", "article h1", "main h1", "h1", "head > title"],
            content: ["article p, article li", "main p, main li", "p, li"],
            lvl0: {
              selectors: "",
              defaultValue: "Documentation",
            },
            lvl2: ["article h2", "main h2", "h2"],
            lvl3: ["article h3", "main h3", "h3"],
            lvl4: ["article h4", "main h4", "h4"],
            lvl5: ["article h5", "main h5", "h5"],
            lvl6: ["article h6", "main h6", "h6"],
          },
          aggregateContent: true,
          recordVersion: "v3",
        });
      },
    },
  ],

@anngvu anngvu moved this to In Progress in Gray Foundation Development Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant