Skip to content
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

Missing results in references search #204

Open
ffd8 opened this issue Apr 24, 2020 · 4 comments
Open

Missing results in references search #204

ffd8 opened this issue Apr 24, 2020 · 4 comments

Comments

@ffd8
Copy link
Member

ffd8 commented Apr 24, 2020

I first noticed this issue the other week while searching the references for random, which only lists:

  • Math#Random (just text, not a link to click on.. should be?)
  • randomSeed(seed)
  • placeholder(textFrame)
  • noise(x, [y], [z])
  • noiseSeed(seed)

.. surprisingly not the random() function itself.

Did a search today with students for max + max() to demonstrate max of arrays, but the results were only:

  • constrain(aNumber, aMin, aMax)
  • inspect(obj, [settings])

Searching for ceil finds it without an issue, even though they're in the same sub-category...

Curious if it's an issue with the inline documentation (don't see a difference in src) or the parsing of it for the search module?

@ff6347
Copy link
Member

ff6347 commented Apr 24, 2020

The search index is based on this document. https://basiljs2.netlify.app/reference/lunrjs.data.json I’ll noticed that myself. I’ll investigate

https://github.com/nextapps-de/flexsearch

@ff6347
Copy link
Member

ff6347 commented Apr 24, 2020

Note to self. Rename it fun lunr to flexsearch

@ffd8
Copy link
Member Author

ffd8 commented Oct 5, 2020

Quick followup on this – I'm guessing the search is ignoring any functions that have the same name as a subhead? While trying to search for text – it doesn't list the actual text() function.. same with vertex (also has a subhead).

@ff6347
Copy link
Member

ff6347 commented Oct 5, 2020

Okay. Thanks. I will review this. I started a rewrite with less Markup and better responsibility. I also will be on parental leave from November till mid January and hope to get this onto the road then.

I know you will say: "noooooo not a rewrite!! 😱 " but the code for the current site has gotten so messy that every time I touched one thing something else broke. So I started from scratch with eleventy as SSG and now builds are 10000000000 faster and it is based on the Bulma framework (which is way smarter then I'll ever could write CSS). Anyhow I'll move my current state to the org as soon as I have the base functionality we already have replicated. I will rewrite the search as well and then we can hopefully close this on.

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

No branches or pull requests

2 participants