I'm in the proccess of trying to replace one Algol...
# community-help
e
I'm in the proccess of trying to replace one Algolia part of my app with Typesense. Is there way to index objects / multi-dimensional arrays? or would I need to flatten them?
for example:
Copy code
attributes: {
'bar': 'baz',
'something': 'else',
'some_number': 123
}
this works in algolia
message has been deleted
j
Typesense doesn’t yet support nested fields, we’re tracking it here: https://github.com/typesense/typesense/issues/227 So you’d have to flatten it for now
e
yep, just saw that!
so, if the
attributes
object can contain different fields of different types (int, string, bool), I would need to setup auto schema detection?
is there a way to setup auto schema detection just for the fields starting with "attribute."?
j
Yeah, yeah could you do name: attribute\.*, type: auto
Name is just a regex
e
ok, thank you .. I don't think that's in the docs, btw :)
j
Oh! Will add that in.
Btw, I made a mistake in the regex above. It should be attribute\..* (two periods)