Hello everyone! From my scrapy app, I am trying s...
# community-help
r
Hello everyone! From my scrapy app, I am trying search for a document in TS. Here is my code:
Copy code
self.typesense_client.collections[self.default_collection_name].documents.search({
    'q': '*',
    'filter_by': 'url:=<https://dev.hbkworld.com/en/qa-base/c10/p-1-C10/1MN>',
})
I am expecting getting document with url "*https://dev.hbkworld.com/en/qa-base/c10/p-1-C10/1MN"* or Nothing But TS return document with url "*https://dev.hbkworld.com/en/qa-base/c10/p-1-C10/100KN"* Is there any proper way to query for getting expected result from TS. thanks in advance.
@Kishore Nallan @Jason Bosco
Note: I tried with double quote.
f
The URLs are different. Have you tried enclosing the filter query in backticks? ```
j
Could you try setting
token_separators: ["/", "."]
in the collection schema?
r
``` backticks doesn't work
f
Try adding the token separators (also be sure to add the
:
character as well)
And the slash (
/
)
👀 1
r
@Jason Bosco Working as expected after adding token separators Thank you.
🙌 2
👍 1