• We have a custom post type that uses an ACF Select Field. The field uses distinct values and labels, e.g.

    E10000012 : Essex

    The ‘Essex’ in the above is visible on the front-end to users. The value is a UK government geocode used to do geographical lookup searches.

    Relevanssi is indexing the geocode, not the label. So users searching for ‘Essex’ do not see the post. But if I do a test search for E10000012 I do see the post.

    Is it possible to index the label instead of the value? Happy to add hooks or tweak our theme if needed.

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Hmm, Relevanssi should index the label, not the value. When I create a Select field like that, Relevanssi indexes “Essex” for it. This should work the way you want it to work without any tweaking.

    You can tweak the value Relevanssi indexes with the relevanssi_acf_field_value filter hook (see documentation).

Viewing 1 replies (of 1 total)

The topic ‘Index ACF Select Label NOT Value?’ is closed to new replies.