Orion Reed
06/30/2023, 4:01 PMfilter_by
or any of the search parameters? I am working on a complex query system which takes a query language, validates and parses it, then constructs typesense queries from the syntax tree. Doing this without knowing the precise filtering grammar (or other params) is quite a challenge. At the moment I've taken all the documented examples and tried to formalise them into PEG and BNF grammars but I would love to be more confident that it matches.
Second (much more mundane) question, is there any way to programmatically get a collections schema? I'm using the schema to inject some more intelligent behaviour into the query system so that things like filtering tags[] > 5
throws a useful syntax error in the frontend. I can copy-paste the schema when it changes but I would really love to avoid that.Orion Reed
06/30/2023, 4:12 PMJason Bosco
06/30/2023, 4:14 PMfilter_by
in this tableOrion Reed
06/30/2023, 4:14 PMJason Bosco
06/30/2023, 4:15 PMis there any way to programmatically get a collections schema?Yup. Using this GET endpoint
Orion Reed
06/30/2023, 4:15 PMJason Bosco
06/30/2023, 4:16 PMOrion Reed
06/30/2023, 4:17 PMJason Bosco
06/30/2023, 4:21 PMOrion Reed
06/30/2023, 4:22 PMJason Bosco
06/30/2023, 4:22 PMOrion Reed
06/30/2023, 4:23 PMOrion Reed
06/30/2023, 4:23 PMJason Bosco
06/30/2023, 4:23 PMOrion Reed
06/30/2023, 4:26 PMJason Bosco
06/30/2023, 4:30 PMOrion Reed
06/30/2023, 4:31 PM