-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search by unicode #50
Comments
Algolia handles emojis out-of-the-box actually :) so if you search for 🔍 Algolia automatically expand it to We could definitely add an extra attribute in every record with the Hex value to be able to retrieve them using like @grimen would be like to try a PR? |
@redox The Hex Unicode value is already in the uploaded search index |
Oh yeah, so it's only about configuration :) We just need to include
|
Hadn't considered the use case of searching by unicode hex for debugging, but seems easy enough to add. Would be happy to accept a PR on this. |
@thomaspark I could fix it, but how do I do it? From Algolia docs it sounds like it is a dashboard thing. I cannot find anything in the code that says what is indexed or not, because the unicode hex is definitely already in the content unescaped (which it should be). |
@grimen you just need to update the "attributesToIndex" array like I copy/pasted you -> the settings are applied through the API (no need of the dashboard). |
@redox Oh sorry, I must have been blind today because I neither noticed your comment or the |
@thomaspark Good point, that would be useful. |
@redox Any input? |
Super late on this; replied here |
Thanks @redox! This is exactly what I was hoping for. |
@redox, I ran into a couple of issues: When I change the index settings programmatically, it isn't reflected in the web dashboard. In fact, it seems to reset whatever I had manually set in dashboard. Any idea why this might be the case? I'm using v2 of algoliasearch library. I set I was able to temporarily bypass these issues by setting Any help would be appreciated! |
That's weird @thomaspark :/ And right now the index is totally un-configured. In which branch do you work? Can I see the associated code? The one here looks fine. |
It's pretty much unchanged from that, except for one line: Line 63 in 92b79bc
|
Was finding myself a few times trying to enter Unicode (Hex) value into the search field, but don't get any results. Would be great if this was possible to reverse-lookup icons like that, especially when debugging.
I am not sure how Algolia Search works with regards to field indexing, but could not see anything in the code that made me believe I could create a pull request - probably Algolia Dashboard thing?
Related: This cross-browser client full text search engine is pretty impressive performance wise, in case that would be a case: http://reyesr.github.io/fullproof/
The text was updated successfully, but these errors were encountered: