Git Product home page Git Product logo

Comments (7)

cboettig avatar cboettig commented on June 22, 2024

Or consider marran's custom Jekyll solution (also JQuery based): http://www.marran.com/tech/jquery-full-text-indexing-on-jekyll/

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

Marran's solution looks more resource-conscious and scalable then tipue-search. Indextank.com is gone though code lives on in other repositories, but strange to have to query against an external API just to perform a local search.

Cannot get Marran's html/css configured properly to generate search results box. Should consider modifying anyway such that results return on a separate page?

Posted query to Marran's disqus

Testing on site-search branch.

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

Difficulties with Marran solution:

  • Page titles aren't indexed. Ideally they should be given higher weight
  • Phrases aren't associated

A better solution?: https://github.com/slashdotdash/jekyll-lunr-js-search

My SO question on this

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

slashdotdash/jekyll-lunr-js-search#1

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

Javascript for lunr search works following pull request #68

Unfortunately lunr makes page load times for search take a very long time. @slashdotdash is considering dropping stop words, which should greatly improve performance.

Meanwhile, available at http://carlboettiger.info/search.html, but remaining search uses Marran's method.

  • Need to adjust Marran's method to add titles. Should possibly up-weight the occurrence of terms in title text.

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

Need to add search plugin credits to info / README.md

from labnotebook.

cboettig avatar cboettig commented on June 22, 2024

Dropped back to google search after all that. Stemming search means that we cannot match phrases, which I often want. Google is reasonably accurate and simple. Detailed exhaustive search can always just grep against the _posts directory anyway.

from labnotebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.