- Issue created by @butterfi
- π¨π¦Canada mandclu
Smart Date stores its date values as timestamps, the same as how core stores values for content creation and last updated. For recurring dates, all the values generated on save are in the database as extra field values, so that they can be selected by views, entity queries, and so on.
As such, if you are indexing the values of a Smart Date field, any recurring values should be included.
Can you elaborate on what you mean by "I've never seen a noticeable result"? What are you expecting to see that you aren't?
- πΊπΈUnited States butterfi
When I index the smart date field ("event date") which typically has repeating events (i.e. held every Wednesday), I get a single event entry with an array of dates, which is I believe is the expected behavior. What I think Meilisearch wants is a separate index line for each event as it doesn't know what to do with an array of timestamps. When creating the Search Index, I can add fields to the 'Content' section, but there are two other sections offered: "Smart Date Overide" and "Smart Date recurring rule" and this is where I'm puzzled. How are these areas meant to be configured? I can add fields to them, but I don't see any impact. I'm not even confident the fields being added have values. (See attached)
Thanks for your time!
- π¨π¦Canada mandclu
Smart Date Date Recurring Rules store the information for any recurring events: Information about the entity on which the event appears, and then frequency and other information needed to generate the individual dates. Smart Date Overrides are the entities used to store variations from the standard instances of a recurring rule: a different start and/or end time, or nothing at all to signify that an instance is cancelled.
I'm not sure that either of these will help, however. I'm a little surprised that Meilisearch "doesn't know what to do with an array" of values. Is it not able to handle multivalued fields?
- πΊπΈUnited States butterfi
As I've been digging into this issue, I have found several sources that have led me to the belief that Meilisearch really only wants one date. Its my understanding that Meili flattens arrays, which for indexes with Taxonomy fields is fine - the term id gets translated to the label and Meili just parses the whole thing as a string.Thats great for taxonomy terms, but doesn't help populating repeat events. I'll keep poking, but I think for now, I'm going to keep using Views for the Events date