This repository has been archived by the owner on Mar 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 204
"full-text search" donot work! #63
Comments
@ShengChangJian 应该是编码的问题,全英文就可以。正在看怎么改一下…… Edit; 与中文无关,是控制符和标点的问题。我是因为用了liquid导致有些句法与这里冲突。 |
module Jekyll
module CharFilter
def remove_chars(input)
input.gsub! '\\','\'
input.gsub! /\t/, ' '
input.gsub! '@',''
input.gsub! '$',''
input.gsub! '%',''
input.gsub! '&',''
input.gsub! '"',''
input.gsub! '{',''
input.gsub! '}',''
input
end
end
end
Liquid::Template.register_filter(Jekyll::CharFilter) Manually modified version for json files with some restrictions. |
@ShengChangJian thanks for your feedback! |
Should be fixed with the new release v1.1.5 |
yo1995
added a commit
to yo1995/Simple-Jekyll-Search
that referenced
this issue
Feb 10, 2018
Problem description: when I call function SimpleJekyllSearch several times on the same page, the resultsContainer will duplicate the search results. Method to solve: use built-in clear method to clear the global variable 'data' before inserting again. - Update simple_search_filter.rb check christian-fei#63 The problem seems to be related with special chars in the content field. As the former plugin deals with English text within the range of ACSII, my added plugin works well with my Chinese context.
christian-fei
pushed a commit
that referenced
this issue
Mar 18, 2018
Problem description: when I call function SimpleJekyllSearch several times on the same page, the resultsContainer will duplicate the search results. Method to solve: use built-in clear method to clear the global variable 'data' before inserting again. - Update simple_search_filter.rb check #63 The problem seems to be related with special chars in the content field. As the former plugin deals with English text within the range of ACSII, my added plugin works well with my Chinese context.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I use the search.json which not enable the full-text search, do work very well to search the post.
But When I replace the search.json to enable the full-text search, it donot work anymore and it cannot search nothing and even no feedback with "No find results" .
I donot know the reason.
The text was updated successfully, but these errors were encountered: