Skip to content

MHR API - Staff Serial Number Wild Card Search #30870

Closed

Description

@shahriarkhan-ey

For staff users searching by serial number, replace the existing search by compressed key with a wildcard search, matching on any serial numbers that contain the search value.

  • Add a new request parameter "wildcardSearch=true"
  • The default behaviour for staff when searching by serial number will remain unchanged - the current compressed key method.

Note: a wildcard search may return a large number of results. To ensure data integrity, searching captures a snapshot of the registrations at the time of the search. Wildcard searching with few characters could have a performance hit. Searching with more than 3 characters will improve performance and a smaller set of results.

Activity

  1. shahriarkhan-ey commented on Sep 25, 2025

    @shahriarkhan-ey
    Author
  2. changed the title [-]API for MHR - Wild Card Search[/-] [+]MHR API - Staff Serial Number Wild Card Search[/+] on Oct 3, 2025
  3. mbertucci commented on Oct 3, 2025

    @mbertucci
    Contributor

    Staff should try to add more than 3 characters to make the results faster

  4. doug-lovett commented on Oct 6, 2025

    @doug-lovett
    Collaborator

    Example from DEV:
    Search step 1: submit search
    POST https://test.api.connect.gov.bc.ca/mhr-dev/api/v1/searches?wildcardSearch=true

    {
      "type": "SERIAL_NUMBER",
      "criteria": {
        "value": "NAL1444"
      },
      "clientReferenceId": "MS-UT-WILDCARD-001"
    }
    

    Search step 2: select results from step 1 response:
    POST https://test.api.connect.gov.bc.ca/mhr-dev/api/v1/search-results/16202

    [
        {
          "activeCount": 1,
          "baseInformation": {
            "make": "NOBLE",
            "model": "",
            "year": 1997
          },
          "civicAddress": "2121 BALSAM AVENUE\nQUESNEL BC\nCanada",
          "createDateTime": "1997-02-05T21:44:54-08:00",
          "exemptCount": 0,
          "historicalCount": 0,
          "homeLocation": "QUESNEL",
          "manufacturerName": "NOBLE ACCEPTANCE LTD.",
          "mhId": 105633,
          "mhrNumber": "081534",
          "ownerName": {
            "first": "LYNNE",
            "last": "WORDEN",
            "middle": "PERRY"
          },
          "ownerStatus": "ACTIVE",
          "serialNumber": "NAL1444970798A",
          "status": "ACTIVE"
        }
     ]
    
  5. chdivyareddy commented on Oct 7, 2025

    @chdivyareddy
    Collaborator

    Verified in DEV for the staff account.

    Serial Number: 23874

    image.png

    image.png

    image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions