Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Documentation Updates #2

Closed
ryanvarley opened this issue Feb 10, 2014 · 1 comment
Closed

Documentation Updates #2

ryanvarley opened this issue Feb 10, 2014 · 1 comment

Comments

@ryanvarley
Copy link

Hi, i was going to open an issue saying search was poor but i figured out (partly) why. The guide says to use.

    {% for post in site.posts %}
        {
          "title"    : "{{ post.title | escape }",
          "category" : "{{ post.category }}",
          "url"     : "{{ post.url }}",
          "date"     : "{{ post.date }}"
        } {% if forloop.last %}{% else %},{% endif %}
    {% endfor %}

Looking at the json file for your website i found you used the "desc" tag. My searches went from rubbish to good once this was included. Notably a title of "code" would only match "c" in search where code in a description would match the full and partial word.

Secondly theres no mention of how to incorporate tags from #1

Cheers for this script, it works very well when set up correctly.

@christian-fei
Copy link
Owner

Hey, I'm very sorry for the late reply.
Thanks for the report, I also figured that turning fuzzy search off improved search results notably.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants