Infix and field ordering I discovered an issue wh...
# community-help
o
Infix and field ordering I discovered an issue where infix do not work when the first field in query_by do not have infix activated, ie: This works;
Copy code
{
  "collection": "tasks",
  "q": "*",
  "query_by": "recordidentifier,title,referencenumber,*",
  "infix": "always,off,always,off",
}
But this doesn't (ie: infix isn't triggered at all):
Copy code
{
  "collection": "tasks",
  "q": "*",
  "query_by": "title,recordid,referencenumber,*",
  "infix": "off,always,always,off",
}
I guess this is a bug, quite easy to overcome but with an impact on ranking (ie: fields change order). Let me know if you want me to report it more "officialy".
a
Hey @Olivier Are you in cloud? Coud you perhaps create a reproducible example using this as a guide: https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b It could be something related to your collection schema, since we have unit tests for this case specifically. If you could reproduce it, it would be great!
o
Hi @Alan Martini, No, I'm self hosted. It's a bit hard to me as I'm not allowed to share my schemas. I'll see what I can do.
f
Hey @Olivier, No need to share actual parts of your dataset. Any example will do