venkadesh
12/19/2024, 7:15 AMFanis Tharropoulos
12/19/2024, 8:04 AMinfix: true
, along with its type and name (FirstName and EmailAddress for your use-case). Afterwards, when querying that collection you can use the infix
parameter to specify the behavior of infix search. To quote our documentation:
If infix index is enabled for this field, infix searching can be done on a per-field basis by sending a comma separated string parameter called infix to the search query. This parameter can have 3 values:
• off: infix search is disabled, which is default
• always: infix search is performed along with regular search
• fallback: infix search is performed if regular search does not produce results
For example, if you are querying two fields via ?query_by=title,part_number, you can enable infix searching only for the part_number field, by sending(in the same order of the fields in query_by).?infix=off,always
venkadesh
12/19/2024, 10:31 AMFanis Tharropoulos
12/19/2024, 10:46 AMq
value. You'd need to make a multi search request with the two different values of ri and comvenkadesh
12/20/2024, 5:21 AMHarpreet Sangar
12/23/2024, 3:33 AMquery = {
'q': 'ri com',
'query_by': 'firstname, emailaddress',
'infix': 'always, always'
}
venkadesh
12/23/2024, 8:49 AMHarpreet Sangar
12/24/2024, 4:46 AMvenkadesh
12/27/2024, 7:17 AMKishore Nallan
12/27/2024, 3:50 PMvenkadesh
12/27/2024, 3:59 PM