Comments (4)
This appears to manifest in different ways and have numerous possibly related issues. It's an issue in IE11, too (make a search provider here.
Here are a few examples I expect to take me to the page labeled "SPL/Exceptions".
FF 26.0:
#q=
:spl exception
: Searches forexception
. Exception class.spl%20exception
: Searches forexception
. Exception class.spl/exception
: Searches forspl/exception
. No result.splexception
: Searches forsplexception
. No result.
- Provider:
spl%20exception
: Searches forexception
. Exception class.spl exception
: Searches forspl+exception
. No result.spl/exception
: Searches forspl/exception
. No result.
- Internal search:
spl%20exception
: No result.spl/exception
: No result.spl exception
, type: Not possible. Space is ignored.spl exception
, paste: No result.
IE11:
#q=
:spl exception
: Searches forexception
. Exception class.spl%20exception
: Searches forexception
. Exception class.spl/exception
: Searches forspl/exception
. No result.splexception
: Searches forsplexception
. No result.
- Provider:
spl%20exception
: Searches forspl%20exception
. No result.spl exception
: Searches forspl+exception
. No result.spl/exception
: Variously searches forspl/exception
and treats it as a URI. No result.splexception
: Searches forsplexception
. No result.
- Internal search:
spl%20exception
: No result.spl/exception
: No result.spl exception
, type: Not possible. Space is ignored.spl exception
, paste: No result.splexception
: No result.
It seems that various special characters are not interpreted as expected by the fuzzy search, in addition to any encoding issues there may also be in place. I would expect:
/
to be treated as a literal or ignored by search.- Spaces to be consistently stripped or allowed and possibly ignored by search.
- Query and provider arguments consistently translated to valid search terms. To this end,
%20
should probably be treated as literal space.
I have no personal experience with longest common subsequence matching but I can see the rationale in ignoring spaces. However, it seems to me that a better approach would be to ignore occurrences of spaces in the search term instead of simply stripping them during input.
from devdocs.
Thanks for the bug report. I'll look into this over the week-end.
@commonquail The "type" pages such as SPL/Exceptions aren't part of the search index (the doc also needs to be enabled for results to appear). Thanks for investigating the issue, though; this is very useful.
from devdocs.
Does that mean they can't be or aren't supposed to be, either? When I look up, say, exceptions, it's usually because I don't know if the core library includes a fitting one already or which one that would be. In that situation I can't search directly for a listing of exceptions but instead have to rely on the Alt + r
shortcut from a particular result I know exists (which is nice for what it is but extra work for my poor, lazy fingers). A scoped search for exception[s]
doesn't produce useful results either; far too many or too little.
tl;dr: I'd really like that but I can understand if it isn't possible.
Addendum: A possible alternative interpretation of space using the provider or the query parameter could be to delimit a search scope.
from devdocs.
@commonquail I've opened a new issue for adding the type pages to the search index. I understand the use case but this isn't straightforward to implement.
You can already use a space the scope your search: http://devdocs.io/#q=css%20color
from devdocs.
Related Issues (20)
- Documentation versions report for February 2024 HOT 1
- [C++] (CppReference) HTML-Table-Listed-Items displayed wrong [without Line-Break]
- Go documentation is missing reference links
- Typescript 'Homepage' links are broken
- Add Microsoft Documentation
- Ansible/YAML docs are missing syntax highlighting HOT 2
- Include support for Expo documentation
- Documentation versions report for March 2024 HOT 1
- CMake: harvest definitions in modules
- Add Qwik.dev Docs
- Tailwind Colors should be in Grid Layout
- [C++] utility/optional/operator_bool page is missing completely
- PostgreSQL doc: some JSON functions can't be found
- Add Zsh docs
- Documentation versions report for April 2024
- [C++] cpp/algorithm/move page is missing
- keyboard Tab is error
- Trello: I do not see - how I can add a card HOT 2
- Include "baseline" alerts from MDN HOT 1
- Tor
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devdocs.