-
Notifications
You must be signed in to change notification settings - Fork 38
Minor search issues #37
Comments
Now the fixed version is live. Added errors where necessary too. |
Will Spinx ever let me search for |
I'll have to try with single letter indexing. I have no idea if it's feasible as in performance or if it works at all then. In these days we're working on implementing internal boards and automatic creation of tables with Sphinx configurations, so I'll have a chance to try. |
Yay! |
Moving to #57 |
@MayhemYDG Confirmed that sphinx can work with one letter and we will do the reindexing on the next update of FFuuka live. That should take another week since we made lots of updates. Example: |
Suweet. Thanks. Also, get rid of that shitty sub-menu navigation. |
I liked the shitty sub menu navigation. I think the new one uses too dark green and black sub menu, difficult to read and ugly. |
I largely prefer it as it is right now. A sub-menu? Really?
This is terrible UX. No one likes needless complications. The colors are worse too. |
Links composed by a single 13px letter is terrible UX too, but you can still scroll up to find them. I am particularly annoyed by small links because I am always on touch devices unless I am coding. The dropdown feels really slick then. I tried various options, but all suffered from being unobvious for the user. Having dropdown and old links is best of both worlds. And there's all kinds of things that need to be fixed to work on touchscreens, and I'll get on that hopefully before the release of this version. |
No it's not. Not at all.
http://caniuse.com/css-mediaqueries If you're concerned about a too small hitbox, use a bit of CSS. |
I think this for example very hard to read http://oi42.tinypic.com/el49rl.jpg .and the dark green also makes it worse.A lso, white on dark is ugly. Just my opinions, but I think many people also think like this. |
These are minor issues, they're not even bugs, I'm just putting them here in case you want to mimic Fuuka's search behavior as much as possible.
Because
-
is a special character, a word with-
in won't be able to be searched for if you input it like that. For example,Anon-san
, orAkiha-sama
. The other special characters,|
,+
and"
don't really pose that much of an issue because usually people don't mistakenly try to search for words with those characters in them while expecting results.So, as a courtesy to the user, Fuuka, in the
_sphinx_escape
function (which is used under the same circumstances as yourHalfEscapeString
method), turns an expression likesomething-something
into"something\-something"
(which is technically returns the same results as"something something"
because-
isn't indexed and is counted as a word boundary character, but I'm still including the escaped-
for the sake of correction), so you get the expected results. In that way, the-
character is only treated as "exclude the following word or quoted expression from the search results" when it's preceded by at least one space. This matches Google's behavior:https://www.google.com/search?q=akiha-sama
https://www.google.com/search?q=akiha%20-sama
Example:
http://oldarchive.foolz.us/jp/?task=search&ghost=&search_text=akiha-sama (autocorrected by Fuuka)
http://oldarchive.foolz.us/jp/?task=search&ghost=&search_text=%22akiha%20sama%22 (equivalent search)
http://archive.foolz.us/jp/search/text/akiha-sama/ (broken)
http://archive.foolz.us/jp/search/text/%22akiha%20sama%22/ (equivalent search)
These are the Perl regexes that perform the replacement above (you need the first one so you won't wreck someone who searches by
"akiha-sama"
, otherwise the second one would turn it into""akiha-sama""
):Another thing that I noticed is that making a search with invalid syntax returns a 404. Ideally, it should return an error message so someone who's unaware of search syntax has a chance to figure it out and correct their mistake, instead of being throughly confused. Examples: http://archive.foolz.us/jp/search/text/-/ http://oldarchive.foolz.us/jp/?task=search&ghost=&search_text=-
http://archive.foolz.us/jp/search/text/%22something/
http://oldarchive.foolz.us/jp/?task=search&ghost=&search_text=%22something
The text was updated successfully, but these errors were encountered: