Skip to main content
InSource Solutions

TN - 1201 How to control field search indexing in j5

Description

 

This article from InSource shows how to control field search indexing in j5

  • Author: Ron Tanner
  • Published: 12/14/2021
  • Applies to: j5

Details

1.       Controlling field search indexing (i.e. solr indexing not SQL indexing):

This is controlled in the fields.yml file for each filed using a Boolean property called ‘search_enabled’
clipboard_ec11d37b93f96499fd7564282203c92b1.png

The fields.yml should be edited using the j5 IDE.  Clicking the "file" tab exposes the yaml for editing.
clipboard_e0c8de06e3727ca9ef29ba44ef6899a0a.png
 

If you want the field to not cause solr errors assuming the data type is anything other than str you should 
change the search_enabled to "false"
clipboard_ec0b3a3c82ce8fadd1645eaafc9d0ac2c.png

  • Was this article helpful?