Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Some searches in documentation result in no results #5320

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

Closed
mdboom opened this issue Oct 26, 2015 · 13 comments
Closed

Some searches in documentation result in no results #5320

mdboom opened this issue Oct 26, 2015 · 13 comments
Milestone

Comments

@mdboom
Copy link
Member

mdboom commented Oct 26, 2015

John Slavin wrote on the matplotlib-users mailing list:

Hi,

For a while now I've been having problems with searching on the matplotlib web page. Specifically, terms that should produce results in a search come up empty. Attached is a screenshot illustrating how typing 'codex contour' in the search box comes up empty though, obviously there are several code examples using contour. Anyone know what the problem is?

​Regards,
Jon​

@WeatherGod
Copy link
Member

Check if javascript is enabled. I once thought there were search issues
once when it turned out that it was noscript blocking the search feature.

On Mon, Oct 26, 2015 at 11:03 AM, Michael Droettboom <
[email protected]> wrote:

John Slavin wrote on the matplotlib-users mailing list:

Hi,

For a while now I've been having problems with searching on the matplotlib
web page. Specifically, terms that should produce results in a search come
up empty. Attached is a screenshot illustrating how typing 'codex contour'
in the search box comes up empty though, obviously there are several code
examples using contour. Anyone know what the problem is?

​Regards,
Jon​


Reply to this email directly or view it on GitHub
#5320.

@mdboom
Copy link
Member Author

mdboom commented Oct 26, 2015

Not the case here. Some searches work fine, others, such as codex contour give no results. I think there may be a limit on the number of hits for a given word in the index (just a guess...)

@mdboom
Copy link
Member Author

mdboom commented Oct 27, 2015

Hmm... figuring out how sphinx' little search engine works is proving to be difficult...

@tacaswell
Copy link
Member

Amended your statement a bit 😈

Hmm... figuring out how sphinx' little search engine works is proving to be difficult...

@tacaswell tacaswell added this to the next bug fix release (2.0.1) milestone Oct 28, 2015
@mdboom
Copy link
Member Author

mdboom commented Oct 30, 2015

This might be related (but unfortunately not very helpful): sphinx-doc/sphinx#1918

@afvincent
Copy link
Contributor

afvincent commented Feb 19, 2017

Is this problem still present? For example, searching for codex contour on the devdocs web site returns 26 hits.
Sphinx version: 1.5.2

Edit: just tested on the current non-devdocs web site. Searching goes indeed forever, without returning anything…
Sphinx version: 1.5.1 (=> seems like 1.5.2 somehow solved the problem. Should this issue be closed?)

@NelleV
Copy link
Member

NelleV commented Feb 19, 2017

This issue should be closed :)

@NelleV NelleV closed this as completed Feb 19, 2017
@tacaswell
Copy link
Member

Does this mean I should rebuild a bunch of the docs?

@afvincent
Copy link
Contributor

I don't know but currently, the small search engine on the web site seems to struggle to find most of the relevant pages to a simple query. For example, simply searching contour returns 4 pages after 2 min (and still seems to be running!) and codex contour returns zero result after several minutes of searching.

The same queries on the devdocs version return respectively 75 and 26 results in a few seconds... One thing that appears to have changed is the Sphinx version (1.5.1 -> 1.5.2), but I don't if it is related to that.

@QuLogic
Copy link
Member

QuLogic commented Feb 20, 2017

There's an error on the search page: "TypeError: suffix is undefined searchtools.js:543:96"; this doesn't show up on the devdocs version.

@QuLogic
Copy link
Member

QuLogic commented Feb 20, 2017

I think the warning was fixed by #8086; not sure if that's what fixed the search, but it might have.

@tacaswell
Copy link
Member

I'm rebuilding the docs for 2.0 now from 2.0.0-doc. If the search works locally, I will deploy the re-built docs

@tacaswell
Copy link
Member

http://matplotlib.org/search.html?q=codex+contour&check_keywords=yes&area=default <- now gives 24 results almost immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants