Converting String Fields to Array Fields
TLDR Eric had queries regarding converting string fields to array fields. Jason offered a solution involving setting parameters in the collection schema.
Powered by Struct AI
1
3
2mo
Sep 21, 2023 (2 months ago)
Eric
Eric
08:13 PMI am being hesitant converting one of my string fields to an array field.
Is it possible to do a search like
Is it possible to do a search like
my_field:=\b254\b
to match something like 253,254,270
to not match 2544,2540
Jason
Jason
08:52 PMIf you set
token_separators: [","]
in the collection schema, then set prefix=false
as a search parameter you should be able to do thisSep 22, 2023 (2 months ago)
Eric
Eric
08:01 AMCool. Thanks.
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 3015 threads (79% resolved)
Similar Threads
Filtering Out Fields Using Array Parameter
Andrew asked how to filter fields based on an array parameter. Jason offered a solution, which Andrew found helpful.
4
14mo
Issues with Schema Creation and Nested Fields
Sean encountered a problem with schema creation involving auto nested fields. Kishore Nallan suggested checking the API response for errors and adding problematic fields to the schema as optional. Sean confirmed the advice.
9
2mo
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.
5
29mo