-
Notifications
You must be signed in to change notification settings - Fork 1
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
Allow fieldtypes to manipulate values before inserting to search indexes #321
Comments
I don't necessarily agree that everything should be augmented before putting in the index, but definitely some. eg. Bard fields store prosemirror structure that looks like this:
If you were to search for But maybe another field converts to html or something. Use that photo gallery fieldtype example.
if it augmented to So whatever the solution is, it should be up to the fieldtype to decide. Probably just duplicate the Augmentable behavior and make an Indexable one. |
Mhh, I'd love to have the index configurable and let the user decide. What about allowing a closure as
could look like: (pseudo-code)
|
I wonder if we should augment the data before inserting it into the search index so you can search on what you would expect as output. Thoughts, @jasonvarga?
Originally posted by @jackmcdade in statamic/cms#550 (comment)
The text was updated successfully, but these errors were encountered: