Subject: Exact URL match still returning partial m...
# community-help
r
Subject: Exact URL match still returning partial matches Hi everyone, I’m having trouble getting exact matches on a URL field in Typesense. My schema (from
retrieve()
):
Copy code
{
  "name": "url_without_anchor",
  "type": "string",
  "facet": true,
  "index": true,
  "infix": false,
  "optional": false,
  "sort": false,
  "stem": false,
  "store": true
}
I’m querying like this (Python client):
Copy code
search_result = self.typesense_client.collections[self.default_collection_name].documents.search({
    "q": "*",
    "filter_by": f'url_without_anchor:="{url}"'
})
For some URLs it works fine. Example: •
/en/products/transducers/force/c10
• → Only this document is returned. •
/en/products/instruments/sound-vibration-daq/microphone--calibration/9721-b
• → Only this document is returned. But for: •
/en/products/transducers/inertial-sensors/inertial-measurement-units--imu-/3dm-cv5-imu
…it also returns: •
/en/products/transducers/inertial-sensors/inertial-measurement-units--imu-/3dm-cv5-imu/p-6259-7210
@Kishore Nallan @Jason Bosco
f
Could you Log out the search parameter dictionary before passing it to the search function?
r
f
Is the issue present both when using the Python client and curl?
r
yes