Hi <@U01NZ4D0LDD> <@U01PL2YSG8L>, we are using alg...
# community-help
i
Hi @Jason Bosco @Kishore Nallan, we are using algolia angular instantsearch via TypesenseInstantSearchAdapter. In our collection we have facet field "uri", i am trying to find exact match "estg-9" in this field, but instead i get results like "estg-91", "estg-92","estg-9a", etc. Is there any way to get exact matches?
j
You want to turn off prefix matches for this field
This table has more info about the prefix parameter: https://typesense.org/docs/0.22.1/api/documents.html#arguments
i
Thank you, will try
Hi @Jason Bosco @Kishore Nallan,your advice helped me, also i have question: I have uri like: "estg-9" , and now with turned off prefix i can find this exact match entering "estg-9", but how can i configure search to also find this "estg-9" by entering for example "9 estg" or "estg 9" ?
k
You have to use the separators config in collection schema to add - as a separator.
👍 1
i
Ok, thank you!
Hi @Kishore Nallan @Jason Bosco we added "-" as separator, now when i want to find "estg-9" and i typing "estg 9" or "9 estg" i don't get this exact match, instead i get matched tokens like "9" or "9)". We search by several attributes, not only uri, is there any way to make query search for whole sentense and not to search by separate words?
k
We have implemented the "space as typo" feature in a rc beta build, which is what you need here.
estg 9
should become
estg9
for searching (however,
9estg
will not work since will be order dependent).
If you wish to support all these variations, you can index them as an array, like this:
["estg-9", "estg9", "9estg"]
etc.
i
Thank you
@Kishore Nallan one more question: what's the time plan for releasing 0.23 version with this "space as typo" feature?
k
We've a beta build for you to test if you want. We generally take a call on release date only when we feel we have enough features/bug fixes to warrant a release.
i
Ok, thanks for answer🙂
k
Let me know if you use Docker/Linux and I can share an appropriate build for testing.