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

Giving an example of a search into a specific collection #9

Closed
pixelastic opened this issue Nov 17, 2017 · 3 comments
Closed

Giving an example of a search into a specific collection #9

pixelastic opened this issue Nov 17, 2017 · 3 comments
Labels
documentation This requires update of the documentation website partnership

Comments

@pixelastic
Copy link
Collaborator

An issue was raised on the previous plugin to be able to specify different indices to index different kind of content: algolia/algoliasearch-jekyll#37

I don't think it would be necessary to push to different indices (and it will increase the code complexity), but the same end-goal can be achieved using faceting on the same index, even with records of very different types.

I should write a guide explaining how one can do two different kind of searches with only one index. I could have a generic search into the website content (pages and posts), and another into one specific collection (list of movies?). Everything can still be pushed to the same index, but by either using faceting on the type from the front-end or using secure API key, one would be able to target one or the other.

@pixelastic
Copy link
Collaborator Author

This will be handled in the example about searching into a collection. The project will have several collections and the example will explain how to limit the search to only one collection.

@pixelastic
Copy link
Collaborator Author

@adrienjoly wrote a blog post illustrating how he added search to a jekyll website using collections: https://dev.to/adrienjoly/make-your-static-site-searchable-with-jekyll-algolia-edh

I should re-use this example and structure to write a real documentation on how to index yml files.

@pixelastic
Copy link
Collaborator Author

I'm going to close this issue. It has been stale for more than one year and I didn't have anyone expressing interest for such a documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This requires update of the documentation website partnership
Projects
None yet
Development

No branches or pull requests

1 participant