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

Cannot index pages instead of posts #4

Open
tychotycho opened this issue Oct 15, 2020 · 1 comment
Open

Cannot index pages instead of posts #4

tychotycho opened this issue Oct 15, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@tychotycho
Copy link

In cli.js the original code is:

let context = {errors: [], posts: []};
. . .
context.posts = await ghost.posts.browse();

… which obviously fetches posts. However, changing the second line above to:

context.posts = await ghost.pages.browse();

… still fetches posts.

Is this hard-wired somewhere? Really should be able to fetch and index pages as well.

@aileen aileen added enhancement New feature or request help wanted Extra attention is needed labels Sep 9, 2021
@aileen
Copy link
Member

aileen commented Sep 9, 2021

Hmmm... this is not hard wired anywhere and should work.

We don't need this feature as in 99% of our use cases we want to exclude pages from being searchable. But we're more than happy to merge a PR that makes this an optional feature 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants