#community-help

Infix Search on Nested Fields in Typesense

TLDR Cooper asked if infix search works on nested fields in Typesense. Kishore Nallan confirmed it doesn't and suggested creating an issue on Github.

Powered by Struct AI
4
5mo
Solved
Join the chat
Apr 05, 2023 (5 months ago)
Cooper
Photo of md5-b1f0bc2b9d796f6426c0fb73238b7a4d
Cooper
06:55 PM
Hey hey 👋 does infix search work on nested fields? I want to apply it to something like:

document: {
  id: 123
  user: {
    firstName: string // want this field to be infixed
    lastName: string // also want this field infixed
  }
}

I was hoping that when auto-defining the schema with { name: ".*", type: "auto", infix: true } , that the infix value would be passed to all nested fields in the object. Is this a limitation of infix/nested fields?
Apr 06, 2023 (5 months ago)
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
02:01 AM
👋 yes, we don't yet have full infix support for nested fields. Can you please create an issue on Github for tracking?
02:01
Kishore Nallan
02:01 AM
You have to use a "flat" field for now.
Cooper
Photo of md5-b1f0bc2b9d796f6426c0fb73238b7a4d
Cooper
01:42 PM
Great thanks Kishore Nallan, tracked here: https://github.com/typesense/typesense/issues/964