How to Filter search Result in Candidates Schema
TLDR Sandip sought clarification on filtering search results by 'custom.experience' in a schema. Jason affirmed its possibility, and Sandip confirmed it works.
1
Aug 25, 2023 (3 months ago)
Sandip
04:34 PM"ts_schema": {
"enable_nested_fields": true,
"fields": [
{
"facet": true,
"infix": true,
"name": "custom",
"optional": true,
"type": "object"
},
]
}
This is schema for candidates, here I have added custom field with object type and below i have attached document example:
{
"id": "b7cdea33-fba9-4d98-a32d-28bac77eda79",
"custom": {
"Bye": "dwqas",
"Location": "dqwas",
"hello": "heds"
"experience": 6
},
}
Can I filter search result like:
{
"q": "*",
"filter_by":"custom.experience"<6
}
Jason
05:05 PMSandip
05:46 PMThanks.
1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Difficulty in Searching Schema Returns No Results
Robert cannot search anything in a schema they have defined and populated with data. Kishore Nallan asks for a reproducible example.
Using Typesense to Query by Custom Column Key Value
Sandip asked how to use Typesense to perform unique key searches in different organizations. Kishore Nallan suggested creating an 'object' field for varying keys. After a clarification, Sandip expressed satisfaction with the advice.
Issue with Categories Facet in Typesense InstantSearch Adapter
David encountered an issue with not being able to add fields categories to facets. Kishore Nallan assisted in troubleshooting. After some back and forth communication, David finally managed to resolve the issue.