How can I prioritize exact name matches over "entity type"?

Hi team, I’m running a search where “Piedmont Physicians at Wellbrook” seems to be pulling out “physicians” from the query and prioritizing doctors at the top of the universal results list, when in fact there is an exact name match in the Facilities category that I would like to show at the top.


I do have a synonym set for physicians/doctors/providers/etc. which I’d like to keep so that doctors appear for other searches like “physicians at wellbrook”, but if it’s an exact name match I’d prefer the facility to appear at the top, is that possible?

Hey Hannah,

Our Product team is looking into this further and will respond with a recommendation once they get to the bottom of it.

In the meantime, I would suggest simplifying the searchable field types used in your config. It looks like you’re using Phrase Match, Text Search, and NLP Filter on the name field for facilities. We don’t recommend this as the complexity will conflict with each other. I think removing the NLP filter could help since the location names seem similar.

For example, there are multiple locations that start with “Piedmont Physicians” followed by a geomodifier. For the search query “Piedmont Physicians”, an NLP filter would apply for the closest match, thus filtering out the rest of the Piedmont Physicians locations.

For more tips, check out the Searchable Fields Best Practices unit.

Hi Hannah,

You’re right that the Answers algorithm should prioritize exact name matches. After more digging, we found that this is happening because base score is set to 1 on doctors, which means that vertical will always show up first if it has results. If you want facilities to show up first in this case, you’ll have to either remove the base score on doctors or boost facilities for this search.

1 Like