Unable to search field with value containing dot "."
ayrbox opened this issue · comments
First thanks for creating Zinc. For now, its amazing for small applications and I am sure more features are coming.
I was playing with Zinc after reading your article. I tested with data with email addresses. There are no issues with writing/reading documents but on search it does not seems to consider email. I tried to encode email address and tried few ways and found that search does not work as soon as I add dot "." any data.
I tried to debug from source but my skill is limited with go lang so its not much help.
Thanks
querystring by default does "match" search which searches for the whole word. In order for you to be able to search for partial words you could use wildcard search. e.g.
*gmail.com -> This should search for all email with gmail.com domain
Let me know if this helps.
Thank you for the quick reply and yes it does work as you suggested 🎉
Suggestion:
I don't how ES works and I am assuming Zinc is doing similar kind of search type that ES supports. May be its good to add how different search_type
works. If you can direct me to resource when I can learn more about the search_types
then I can help with adding to readme or may be just addd link to page about search_types (if already exists).
Thank you again 👍
Am glad it worked for you. Zinc is a relatively very young project. First released on Dec 3rd 2021. I still have work to put in basic documentation. Will do it soon.