StaticSearch v0.9.0 update
469 words, 3-minute read

StaticSearch v0.9.0 was released on . There should be no breaking changes but search results should improve (or at least differ) slightly.
Index files by extension #
A new --indexext | SITE_INDEXEXT | .siteIndexExt option option allows you to define the extension of files you want to index. The default matches any file with an extension containing .htm – such as .html. You could set it to .php for PHP files or . for any file with an extension.
Parse keywords meta tags #
StaticSearch now indexes keywords in the HTML <head> keywords <meta> tag with a default weight of 1:
example HTML
<meta name="keywords" content="index, some, other, words">
This allows you to index related words that do not necessarily appear in the main page content.
Google ignores the keywords meta tag because it was often misused for keyword stuffing. You can ignore it by setting the --weightkeywords | WEIGHT_KEYWORDS | .wordWeight.keywords option to zero:
terminal
staticsearch --weightkeywords 0
Omit zero-weighted words #
As shown above, words in sections assigned a zero weight are not added to the search index.
Previous releases indexed words with a zero score. A page would appear toward the bottom of results but it was not omitted.
Improved handling of compound words #
Compound words with hyphens, underscores, or apostrophes are now indexed as a single entity. For example, “co-worker’s” is indexed as “coworkers” and “my_variable” is indexed as “myvariable”. Users can enter any variation to search for pages containing the word.
In previous releases, “co-worker’s” was indexed as “co” and “workers” which could lead to less meaningfull results.
Get started #
The StaticSearch documentation provides a quick start guide, and details about the indexer, single script tag, web component,web component, bind module, and JavaScript API.
StaticSearch works well with Publican sites. The Publican documentation provides a quick start guide, a detailed set-up guide, API references, and common recipes you can use and adapt for your own projects.