Found two local full-text search,Can it be integrated in hugo?


#1
  1. jekyll local full-text search
    demo: https://simpleyyt.com/jekyll-theme-next/ ,search “is” for example.
  2. ink local full-text search
    InkPaper is an static blog generator developed also by Golang .
    demo: http://www.chole.io/blog/ ,search “InkPaper” for example.

Suggested search is hard to use, If they can be integrated into hugo,that‘s awesome!
thank you!


#2

Lunr was super simple to get working, and there’s a tutorial linked in here. Just search the discourse for it.


#3

Lunr’s search result can’t find the right words, especially for Chinese,ink’s search perform well, so I want them integrated into hugo.

The hugo’s search plugins become various, Isn’t it a good thing?


#4

There is a Lunr add-on for Chinese:

https://www.npmjs.com/package/lunr-chinese


#5

Thank you for your advice.I’ll try it.


#6

@pamela908 you posted this in #feature, so presuming your question is, “can search be added to the Hugo application somehow”, the answer is: search indexes can be generated by Hugo, but the searching interaction is beyond the project.

Search is not a “static” operation. If you need advanced searching capabilities, I suggest something heavier to do the work for you. Searching language isn’t that easy. :slight_smile: