Search
Test Queries
What?
Just a Github Pages/JavaScript playground. At the moment I'm testing out a very simplistic static site search that searches through post data (title, post date, tags, categories, etc.) located in a JSON file that is retrieved from the server, and parsed/searched on the client side. It's similar to Simple Jekyll Search in that it searches post data in a JSON file client side, but it's nowhere near as polished, and probably doesn't work nearly as well. I just wrote it as a learning exercise.
Relevance = Sort by relevance (weight) of item, which is based on the number of full/partial title/tag matches.
Post Date = Sort by post date.
Precedance only applies to relevance sorting. When checked, searching takes into account the order of words in the query. Each word is assigned a weight modifier, valued from 0 to n, where n is the number of words in the query. Assignment is in descending order, from first word (left-most) to last. For example:
Query: "text sci-fi 198"
Modifiers: "text" = 2, "sci-fi" = 1, "198" = 0
Results
| No. | Title | Tags |
|---|