Not finding 'computed date occurrence field'

Created on 11 June 2024, 9 months ago
Updated 14 June 2024, 9 months ago

Problem/Motivation

I am having trouble finding the 'computed date occurrence field'. I encountered this on a site for which I was testing out the module. To be sure that it was not another module causing the issue I installed Recurring Dates Field Search API on a clean Drupal 10 installation for testing; I encountered the same issue. Please see the screenshots to review what I am seeing.

My recurring date field is called repeating_date.

Perhaps I am not understanding how I am supposed to add the field to the index. I was able to do number 2 from the project documentaiton: `Enable the 'Date occurrences' datasource for the entity type and recurring date you want to index.`

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Miscellaneous

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @lelkneralfaro
  • 🇬🇧United Kingdom joachim

    It's not a property of your recurring date field. It's another field on the entity.

    Its label will be 'Date occurrence'.

  • No luck finding a 'Date occurrence' field. I have the 'Date occurrences' datasource but no 'Date occurrence' field on my 'Content' data source nor on the 'Date occurrences: Content (field_repeating_date)' data source.

  • 🇬🇧United Kingdom joachim

    You need to click the 'Add fields' button.

  • 🇬🇧United Kingdom joachim

    The field label is 'Date occurrence' and the field maching name is YOUR_FIELD_NAME_occurrence.

  • 🇬🇧United Kingdom joachim
  • Thanks for the screenshot. Unfortunately that field is not available for me in the fields list.

    To verify that I have set up everything correctly here is what I have done:
    - Create a content type (I have called it event) with a 'Recurring dates field' (see attached screenshot ending in 09-25-34)
    - Add a Search API Server using Search API's database backend
    - Add an index to that server called 'Test Events'
    - Add 'Content' and 'Data occurrences' datasources to the 'Test Events' index. (see screenshot ending in 09-27-47)

    When I try to add fields I do not see the 'Date occurrence' field available. Or what in my case would be labeled 'Repeating date occurrence' since my field is labeled differently.

  • I imagine I might see the field here:

  • 🇬🇧United Kingdom joachim

    Do you have any other modules related to recurring dates? The field name might be clashing.

    Can you debug to see why the field is not getting declared?

    It should always be labelled 'Date occurrence'.

  • I am not sure what happened the first time around, but after another clean site install today I found the 'date occurrence' field and was able to add it and use it as a filter. Thanks for the help!

  • Status changed to Closed: cannot reproduce 9 months ago
  • 🇬🇧United Kingdom joachim

    That's great!
    Thanks for reporting back.

Production build 0.71.5 2024