Currently it is quite difficult to index an array that is created by a custom function.
You can use the dot notation to index a relation eg Tags.ID and this will result in an array of IDs however you don't seem to be able return an array from a custom property and have it indexed eg
public function getMyArrayOfThings(): array
{
return // do something that returns an array
}
this would be really useful for creating custom indexes and I think quite intuitive - eg returning an array should create an array on the index. Maybe I'm missing something here so open to correction on how this works.
Currently it is quite difficult to index an array that is created by a custom function. You can use the dot notation to index a relation eg
Tags.ID
and this will result in an array of IDs however you don't seem to be able return an array from a custom property and have it indexed egin search config
this would be really useful for creating custom indexes and I think quite intuitive - eg returning an array should create an array on the index. Maybe I'm missing something here so open to correction on how this works.