-
Notifications
You must be signed in to change notification settings - Fork 6
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
Review relevance of search for localized guides #103
Comments
As far as I tested with the command-line version, the search works really well with Japanese. It's awesome! |
For ES site I tested:
All is going good, except point 4 looks like the search was done word by word, is that expected? |
Thanks all for checking.
Yes, that's expected. For phrase search, we'd need to change the code a bit, but this can be done. It would require specific syntax though; instead of:
You would have to type:
Not sure how useful that would be 🤔 BTW @marko-bekhta it seems you disabled all such syntax constructs here, but I think we can re-enable all operators except the "whitespace" operator, no? |
Yeah, what you are saying seems to make sense; we'd need to test it to be sure, as that |
Ok, we'll try that eventually then 👍
No no no, please no. I don't want to enter the rabbit hole of parsing query strings. |
@marko-bekhta addressed this in #114: phrase search should now work as expected, provided you surround your phrase with double quotes. I'll close this for now as I don't see any other problem to address. Feel free to reopen or open another issue if you see anything! And thanks again for testing :) |
Hey @ynojima , @rdnovell,
A few days ago we merged support for localized guides in search.quarkus.io (see #71). Thanks again for your help on that! And thanks to @marko-bekhta for implementing it :)
I don't expect search to be any worse than the current (substring-based) implementation, so we're probably going to integrate this in quarkus.io very soon.
Assuming we fix #102, after we deploy to quarkus.io and localized sites get updated, you should be able to test the new search on the localized sites. It should look similar to what you'll find on this preview for the English version.
I'm opening this issue to collect your feedback on how relevant search is in localized sites, and to discuss potential improvements (we'll open other issues/PRs when we come up with something). The immediate goal is to be at least as good as javascript search, which as I said above shouldn't be too hard. The longer term goal is to be substantially better.
Note that search might not use the remote service in some cases, e.g. if it's unreachable, or takes too long to answer (bad connection, ...). In that case it will use local javascript-based search like it used to. You can generally spot this easily on the UI by checking if there are any highlighted terms in the search results: if so, it's a remote search, otherwise it's probably a javascript search (not always, but close enough).
If you want to test search right now, you can, but probably only from the command line. Assuming you have
jq
installed (sudo dnf install jq
), this script should allow you to do it:Change QUARKUS_LANGUAGE to what you want (ja/es/...), then run the script above, then type search terms (as you would in a web form), and press enter to see the results.
Note:
<span class=\"highlighted\">...</span>
.The text was updated successfully, but these errors were encountered: