I am setting up Indoors Viewers for each one of our sites with categories set up for different types of rooms in our Units layer. The main categories we have are Student Resources, Classrooms, Offices, and Other rooms. All of our categories are made just from the Units layer, and in every category I have the search fields set to our NAME_LONG and ROOM_NUMBER fields. However when I try to search a room by the room number, it says no results are found. It does work by searching for the name, but most classrooms are just named "Classroom" and offices are generally just named "Office" so it's not very helpful. All the rooms appear in the categories, so I'm pretty confident I have them set up correctly.
I saw a fix in a past discussion about this where changing the Display Field in the Units properties will force it to search the field set there, so I changed that to Room Number, and that work for one of the viewers but not for another. I also have another viewer (all of different sites) that works completely fine, the Display Field is set to the default "Name" field and the categories are set up in the same way, and it is searching for rooms just fine.
I have tried creating a new field, called "SearchTerms", adding that to the search fields list and populating that with some room numbers and that worked. It would find the rooms in which that field was populated with a room number, but not rooms that did not. So this is a solution I could use, I am just so confused as to why it will search that field and the Name field but not my Room Number field. They are all text fields.
How the Categories are set up:
Classroom with room number (which is also the label):
Classroom with search field populated with room number:
I'm really just confused as to what is happening, so any insight is appreciated, thanks!
Hello @MollyE,
I also have another viewer (all of different sites) that works completely fine, the Display Field is set to the default "Name" field and the categories are set up in the same way, and it is searching for rooms just fine.
If you have several Indoors Viewers and they all seem to work as expected expect this one particular app that you are describing then most likely it is a Search Field and Suggestion Template configuration related OR there could be a definition query on the Category or the layer. May I know if all Indoor Viewer instances point to the same web map or different web maps?