Skip to content

Conversation

@mkouzel-yext
Copy link
Contributor

@mkouzel-yext mkouzel-yext commented Jul 8, 2025

During filter search, the value of a near filter in a result corresponds to the name of the location for that filter. We already support setting the "name" property on a near filter in the backend, so we can start setting the "name" property on the frontend, too.

Tested by changing the filterSearchRequest in test-site's autocompleteRequests.ts to query the Locations vertical and builtin.location field on location entities using the input "vir". Saw that the name field was set on the resulting near field value filters to whatever the location of the filter was (e.g. "Virginia, USA").

Also fixes vertical keys in the test-site's universal request.

@mkouzel-yext mkouzel-yext requested a review from a team as a code owner July 8, 2025 16:51
@mkouzel-yext mkouzel-yext changed the base branch from master to develop July 8, 2025 16:51
@coveralls
Copy link

coveralls commented Jul 8, 2025

Pull Request Test Coverage Report for Build 16150530701

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 89.397%

Totals Coverage Status
Change from base Build 15854745081: 0.1%
Covered Lines: 244
Relevant Lines: 266

💛 - Coveralls

During filter search, the value of a near filter in a result corresponds to the name of the location for that filter. We already support setting the "name" property on a near filter in the backend, so we can start setting the "name" property on the frontend, too.

Tested by changing the filterSearchRequest in test-site's autocompleteRequests.ts to query the Locations vertical and builtin.location field on location entities using the input "vir". Saw that the name field was set on the resulting near field value filters to whatever the location of the filter was (e.g. "Virginia, USA").
The vertical key is "faqs", not "faq". There is also no links vertical.
@mkouzel-yext mkouzel-yext force-pushed the dev/near-filter-name-prop branch from ec7b29a to c764d16 Compare July 8, 2025 17:43
@mkouzel-yext mkouzel-yext changed the base branch from develop to master July 8, 2025 17:43
@mkouzel-yext mkouzel-yext merged commit 9b1f0f4 into master Jul 8, 2025
11 checks passed
mkouzel-yext added a commit that referenced this pull request Jul 8, 2025
* ksearch: add openAt Matcher

This PR adds support for the openAt Matcher, which is used
for filtering to those entities which are currently open.
J=WAT-4905
TEST=auto

Added small unit test

* Automated update to repo's documentation from github action

* Add optional name property to near field value filters (#302)

During filter search, the value of a near filter in a result corresponds to the name of the location for that filter. We already support setting the "name" property on a near filter in the backend, so we can start setting the "name" property on the frontend, too.

Tested by changing the filterSearchRequest in test-site's autocompleteRequests.ts to query the Locations vertical and builtin.location field on location entities using the input "vir". Saw that the name field was set on the resulting near field value filters to whatever the location of the filter was (e.g. "Virginia, USA"). Also added unit test.

Also fixes universal search request in test-site.

---------

Co-authored-by: Jacob Fondriest <jfondriest@yext.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fondryext <160865254+Fondryext@users.noreply.github.com>
Co-authored-by: mkouzel-yext <mkouzel@yext.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants