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

Lunr Search Problem #159

Open
leonyonz opened this issue Dec 17, 2020 · 7 comments
Open

Lunr Search Problem #159

leonyonz opened this issue Dec 17, 2020 · 7 comments

Comments

@leonyonz
Copy link

Hello, it seems lunr search only can read up to 62 or 63 document/post.

When i add new post, the search can't be used.

Here the sample:

  • Success at 62 or 63 post total (im not sure about it):

image

  • Failed when add new post:

image

@thatvirtualboy
Copy link

How did you get search working in the first place? I can't get it to show any results on a fresh install on Pages.

@leonyonz
Copy link
Author

Hello @thatvirtualboy ummm, im running it on Nginx and everything fine except post limitation that i mention above.
For now im make custom search on my website you can look at : https://belajarlinux.id

@PeterHdd
Copy link

PeterHdd commented Mar 26, 2021

@thatvirtualboy the search should work normally, when doing jekyll serve open the console and check if lunrsearchengine.js is being found and read

@thatvirtualboy
Copy link

Thanks @PeterHdd Here is what I see

Screen Shot 2021-03-26 at 8 59 15 AM

@thatvirtualboy
Copy link

Noticed I had baseURL in _config set to "" not '', however that didn't seem to resolve the issue. When I try a search, here is what it says:
Screen Shot 2021-03-26 at 9 06 06 AM

@PeterHdd
Copy link

I had a problem with it because I changed the baseurl. I changed the baseurl to / instead of baseurl: /mediumish-theme-jekyll so the blog can be immediately in the main domain. But then I had problems with different url including the search, which I was able to fix by removing the extra /. For example in some places I had {{ site.baseurl }}/{{ post.url }} so I just changed it to {{ site.baseurl }}{{ post.url }} and it worked!

I will try to change baseurl to "" and test it to see what should be changed, so you can just use / if you want the base domain to have the blog

@thatvirtualboy
Copy link

Hmm replacing "" with / breaks formatting and throws all sorts of errors. In my prior theme, baseURL was set to "" as well

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

3 participants