We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Related item fields indexing
I'm working with a big Collection of properties (1000+ items) so I'm paying more attention to indexing and what might affect performance.
In my master (edit form) template I have a couple of related fields:
<perch:related id="agent" collection="Agents" label="Agent"></perch:related> <perch:related id="community" collection="Communities" label="Community"></perch:related>
In all of these Collections (Properties, Agents and Communities) I'm only indexing the fields I need to filter/sort by for that particular Collection.
When it comes to related fields, I've noticed that Runway indexes the related item fields based on the item's master template.
So if the Agents Collection master template has fields with
no-index set, these won't be indexed when relating an agent to a property (in the property edit form). Looking at the
collection_index table all other agent fields seem to get indexed by default including
I have fields that I need to be indexed to filter through the Agents Collection, but I don't need to filter the Properties Collection by them - but they are indexed by default anyway. And I don't necessarily need to index a related item's
I have tried the following, but the field
role still gets indexed:
<perch:related id="agent" collection="Agents" label="Agent" > <perch:content id="role" type="text" no-index="true"> </perch:related>
Is there any way to control what related item fields get indexed at the moment? If not, will there be a way to do so in a future release?
I think it makes sense to be able to specify what related item fields get indexed. Perhaps with an attribute like this:
<perch:related id="agent" collection="Agents" label="Agent" index="slug,agentID"></perch:related>
Want to reply to this thread?Login with Perch