Title: WP Static Search
Author: Gergely Szerovay
Published: <strong>11 ພຶດສະພາ 2020</strong>
Last modified: 11 ພຶດສະພາ 2020

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/wp-static-search.svg)

# WP Static Search

 ໂດຍ [Gergely Szerovay](https://profiles.wordpress.org/gergelyszerovay/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/wp-static-search.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/wp-static-search/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/wp-static-search/#reviews)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/wp-static-search/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-static-search/)

## ຄຳອະທິບາຍ

WP Static Search

This plugin adds a static search engine to your WordPress site. Static in this context
means that it works in the browser without using of server-side queries, so it’s
ideal for static [websites generated from a WordPress site](https://github.com/gergelyszerovay/wp-static-proxy).

Since both the search and the indexing happens in the browser, this plugin is not
a good fit for sites that contain hundreds of pages and posts.

### Getting Started

After you are installed the plugin, choose the ”Static Search” option from the left
sidebar of the WordPress admin interface. Press the ”Update Index” button and wait
until the indexing is finished. Each time you change the content of the website,
you should update the search index manually.

To insert the search box and the search results into the site, use the [static_search]
shortcode. It’s a good practice to create a page called ”Search” with the slug ”/
search/” and insert the [static_search] shortcode into this page. To redirect the
search widgets to this page, append the following code to the bottom of your .htaccess
file:

    ```
    RewriteCond %{QUERY_STRING} \\?s=([^&]+) [NC]

    RewriteRule ^$ /search/?q=%1 [NC,R,END]
    ```

This code redirects the search queries to the /search/ page, then the [static_search]
shortcode processes them and shows the search results.

### Built With

[lunar.js](https://lunrjs.com/) – Javascript search engine

### Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

### License

This project is licensed under the Apache 2 and GPL2+ Licenses
 Acknowledgments

The frontend search code based on the [MkDocs project’s](https://www.mkdocs.org/)
search plugin.

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/037e2fac99764bf3ea69807eef5d3f0b3478d9af92b7d7019bf43739d18b4b2c?
s=60&d=retro&r=g)

### 󠀁[Very promising, but not quite there yet](https://wordpress.org/support/topic/very-promising-but-not-quite-there-yet/)󠁿

 [Paul Trafford](https://profiles.wordpress.org/paul_mhs/) 20 ພະຈິກ 2020

Hello, I like the design of this plugin a lot and after fixing the search results
issue it works fine. I’m currently working on a couple of small sites with a few
dozen pages, some quite long, and the performance is good – I only notice a pause
for the initial loading of the search index. My intention is to generate a static
site for offline use, using WP Static Search in conjunction with an existing plugin
like Simply Static. At least in this context, the plugin appears to be limited as
it makes use of web worker methods in delivering search results and hence requires
a server, albeit no PHP scripting. Also, the resulting static site needs to be hosted
in the web root. (The following is perhaps more suitable for a support topic, but
I mention it here in case of wider interest.) Keen to see it become more flexible,
I’ve created a fork on Github and submitted a pull request with a number of changes,
mainly removing the reliance on web workers. These remove the constraints, so that
the search facility can work offline in any directory, i.e. you can use a plugin(
or wget in my case) to create the static site and put it on a memory stick. Thank
you, Paul.

![](https://secure.gravatar.com/avatar/68f5113479832147c5c00812e08d1e789478ff32a5dc9e3550f4f0464bb6b086?
s=60&d=retro&r=g)

### 󠀁[Solves search on static websites](https://wordpress.org/support/topic/solves-search-on-static-websites/)󠁿

 [ilcaroleader](https://profiles.wordpress.org/ilcaroleader/) 12 ຕຸລາ 2020

This plugin definely did the job! I could implement a search function even where
other similar plugins failed.

 [ ອ່ານການຣີວິວທັງໝົດ 2 ລາຍການ ](https://wordpress.org/support/plugin/wp-static-search/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“WP Static Search” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Gergely Szerovay ](https://profiles.wordpress.org/gergelyszerovay/)

“WP Static Search” ໄດ້ຖືກແປເປັນ 2 ພາສາທ້ອງຖິ່ນ. ຂໍຂອບໃຈ [ທີມງານຜູ້ແປ](https://translate.wordpress.org/projects/wp-plugins/wp-static-search/contributors)
ສຳລັບການປະກອບສ່ວນຂອງເຂົາເຈົ້າ.

[ແປ “WP Static Search” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/wp-static-search)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/wp-static-search/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/wp-static-search/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/wp-static-search/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/wp-static-search/?limit=100&mode=stop_on_copy&format=rss).

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0.2**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **6 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 5.2 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **5.4.19**
 *  ເວີຊັນ PHP ** 7.2 ຫຼື ສູງກວ່າ **
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/wp-static-search/), [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-static-search/),
   ແລະ [Spanish (Spain)](https://es.wordpress.org/plugins/wp-static-search/).
 *  [ແປເປັນພາສາຂອງເຈົ້າ](https://translate.wordpress.org/projects/wp-plugins/wp-static-search)
 * ແທັກ
 * [search](https://lo.wordpress.org/plugins/tags/search/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/wp-static-search/advanced/)

## ການໃຫ້ຄະແນນ

 4.5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/wp-static-search/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/wp-static-search/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wp-static-search/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wp-static-search/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wp-static-search/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-static-search/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/wp-static-search/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Gergely Szerovay ](https://profiles.wordpress.org/gergelyszerovay/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-static-search/)