Skip to content

Configuration Component Agolia Crawler Selector for the URL #268

@olijeffers0n

Description

@olijeffers0n

The Agolia Crawler currently only allows you to navigate to the page a particular search result is on when it is a node within the Configuration component. This should allow you to navigate correctly by setting the url tag properly.

return helpers.docsearch({
  recordProps: {
    lvl0: {
      selectors: "",
      defaultValue: lvl0,
    },
    url: {
      selectors: "",
      defaultValue: url.toString(),
    },
    lvl1: "h1",
    lvl2: "article h2",
    lvl3: "article h3",
    lvl4: "article h4",
    lvl5: "article h5, article td:first-child",
    lvl6: "article h6",
    content:
      "article p, article li, article td:last-child, article button.with-value",
  },
});

This is how you can override the URL tag, however, I do not know how to access the anchor tag for this item. You do have access to a Cheerio instance which might be possible to use, however I cannot think of anything currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedAdditional input is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions