I have a search form with 1 simple input (q)
I also have 2 sections: SECTION-A & SECTION-B
The search is for entries within SECTION A.
The entry I'm searching for contains a custom entriesField from SECTION B which can contain a posible disabled entry because they have an expiryDate. But they still need to be searchable when typing something the disabled entry contains. I can't figure out what to do with my query.
This is what i have so far: (works perfectly with an enabled related entry from SECTION B)
{% set entries = craft.entries.section('SECTION-A').search(searchParam).orderBy('score').all() %}
what I am trying:
{% set entries = craft.entries.section('SECTION-A').search(searchParam ~ ' status: any').orderBy('score').all() %}
But this is not working, can anybody help me out here? :)
When searching october (expired entry from SECTION-B), it is NOT showing me results.
When searching november (entry from SECTION-B), I get the results I am expecting
some technical information:
- PHP version 7.3.22
- Database driver & version MariaDB 10.3
- Craft edition & version Craft Pro 3.5.14