Kanwei
03/17/2023, 2:03 PMJason Bosco
03/17/2023, 4:35 PMFor example, if there’s a company with subsidiaries of [“Hawaii Electric”, “Oahu Power”] and you search for “Hawaii Power” both entries get matchedCould you expand on what you mean by “both entries” here? Do you mean it’s matching records with company_name as
Hawaii Power
and also records where the subsidiary field has Hawaii Power
in it?Jason Bosco
03/17/2023, 4:36 PMFor example, if the company name is “Hawaii Electric” but you search for “hawaii electric asdfasdf” it still considers it a match. Any way to change this behavior?This is behavior is controlled by
drop_tokens_threshold
which is set to 1
by default. If you set it to 0, it will give you the behavior you’re describing. Documented under this table here: https://typesense.org/docs/0.24.0/api/search.html#typo-tolerance-parametersKanwei
03/17/2023, 5:29 PMKanwei
03/17/2023, 5:53 PMKanwei
03/17/2023, 5:54 PMlet's say the parent company is "Western Corp" and two subsidiaries are [“Hawaii Electric”, “Oahu Power”]
Kanwei
03/17/2023, 5:55 PMKanwei
03/17/2023, 5:55 PMKanwei
03/17/2023, 5:55 PMJason Bosco
03/17/2023, 6:06 PMKanwei
03/17/2023, 6:30 PMKanwei
03/17/2023, 6:46 PMKanwei
03/17/2023, 6:47 PMKanwei
03/17/2023, 6:47 PMKanwei
03/20/2023, 3:27 PMJason Bosco
03/20/2023, 4:29 PMKanwei
03/20/2023, 11:24 PMJason Bosco
03/21/2023, 3:47 AMKishore Nallan
03/21/2023, 11:15 AMfoo bar
could end up being stored in 2 different elements of a single field and currently we are unable to account for this case.
Can you please create a github issue here: https://github.com/typesense/typesense/issues? This is a bug and we need to fix it.Kanwei
03/21/2023, 3:41 PM