scragg0x / realms-wiki

Git based wiki inspired by Gollum
http://realms.io
GNU General Public License v2.0
833 stars 91 forks source link

[New] Able to search in page content too #199

Open Freebien opened 7 years ago

Freebien commented 7 years ago

A little hack to add a handy functionality. We are now able to find a page by searching in all words in title AND content

Also used a variable to get all characters to remove. So it can be easier to use it as a Configuration parameter.

Best I could do for now.

scragg0x commented 7 years ago

I'm not sure how I feel about this. It seems to be a very inefficient way to search the wiki. I would think if a realms admin wanted better search functionality they would use Elasticsearch or maybe Whoosh.

Freebien commented 7 years ago

It is not efficient if there is a lot of content. I'll try to add a new advanced search page to choose the fields you want to search on !

But it's really fast on little environments with not that much pages.

roycepope commented 7 years ago

Hey @Freebien I love your little hack here! I added it to mine as well. I was wondering if there was a way to make the page content search not be case sensitive. Is this possible? Thanks!