-
Notifications
You must be signed in to change notification settings - Fork 0
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
Adding ACF Flexible Content Layout fields to schema #11
Comments
Hi @joshuaiz The schema field types are : https://typesense.org/docs/0.24.0/api/collections.html#field-types As for the indexing - it really depends - is the layout field going to go into a single content. If it was me and all the content generated via layout fields need to be searchable I would use the post_content field. Hope this helps. |
Hi @digamber89 the ACF Flexible Content fields are all separate. This is a headless site and we are pulling the content from each field in the layouts using WPGraphQL. As such I'm not quite following what you mean by putting the content into But assuming I am not doing that and keeping all of the separate fields, would each of those fields need to be added to the schema for indexing? (I'm assuming yes but want to confirm). Thanks! |
Hi @joshuaiz What i mean is, if the layout fields are used to generate one single content, then it would be better to aggregate the output of all the fields into one single field. So by post_content i mean the final html output as post_content is usually the output seen on non-headless WP sites. So i think it would make sense that the output of the ACF Layout fields are aggregated into the post_content schema field ( which is already present ) and would integrate into the search results. Otherwise - if lets say the layout fields denote separate meta details about your content. I hope i was clear. |
Yes thanks for this - makes sense. As an example let's take the Callout With Image layout ( heading
callout_content How would I add these to the schema referencing the |
@digamber89 still struggling a bit with this - not sure how to add an ACF Flexible Content Layout subfield to the schema. |
Hi @joshuaiz I would encourage you to think of / organize your data first insead of focusing on ACF Layout Fields. Remember the user is search for / viewing the data from Typesense, they won't care that if it's coming from ACF Layouts or not. For example lets say i have a vehicle ( CPT ) with the following ACF Fields All of these fields would be entered into my schema. I would extract the data that should be put into product description. I hope this helps. |
Hello,
The bulk of the content on the site I'm working on is in ACF Flexible Content Layout fields on Posts and Pages.
I'm assuming I would have to add the schema for these fields for them to be indexed in search. I have roughly 20 layouts, each with its own subfields. What is the best way to include all of these fields in the schema?
Additionally, what are the options for
type
in thisfields
array:Thanks!
The text was updated successfully, but these errors were encountered: