bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Business Search - adjust matching on multi-word queries #13336

Open JohnamLane opened 2 years ago

JohnamLane commented 2 years ago

Currently, when more than one word is entered into the search, we only show matches that contain both words.

It is desirable to show results that only match one of the words in the query as well.

Assuming the following businesses are in out index:

  1. ORCHARD CITY MALL INC.
  2. CITY MALL INC.
  3. ORCHARD LAND INC.

GIVEN I am conducting a search WHEN I enter ORCHARD MALL THEN I get the following results: 1, 2, 3

GIVEN I am conducting a search WHEN I enter CITY LIVING THEN I get the following results: 1, 2

janisrogers commented 2 years ago

@JohnamLane Why would we want to show results that don't match. Isn't the point of entering more search terms that you limit the search?