https://github.com/jakeols/jetpack-search-extractor
Extract any post meta into searchable fields
https://github.com/jakeols/jetpack-search-extractor
jetpack wordpress wordpress-plugin
Last synced: about 1 month ago
JSON representation
Extract any post meta into searchable fields
- Host: GitHub
- URL: https://github.com/jakeols/jetpack-search-extractor
- Owner: jakeols
- Created: 2020-04-09T00:14:53.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T10:40:10.000Z (over 3 years ago)
- Last Synced: 2026-05-31T19:48:20.578Z (about 1 month ago)
- Topics: jetpack, wordpress, wordpress-plugin
- Language: PHP
- Homepage:
- Size: 1.41 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jetpack Search Extractor
Jetpack Search Extractor lets you select custom post meta from your pages, and add it to your managed Jetpack index.
It works by copying your page's post meta into [a new field that is already setup to be searchable by Jetpack ](https://github.com/Automattic/jetpack/blob/99e9223fad2e2fc97850c6ab6819c9ddedd7bca8/packages/sync/src/modules/class-search.php#L48).
:warning: in development :warning:
## Installation
Clone the repo
```bash
git clone https://github.com/jakeols/jetpack-search-extractor
```
Install admin dependencies in `admin/js`
```bash
cd admin/js && yarn install
```
Assets in `admin/js` can be built with
```bash
yarn build
```
For development usage, `yarn dev` will create a development server at `http://localhost:8080`
## Usage
To allow for hot reloading of admin assets during development, replace the following IP address with yours
```php
if ($_SERVER['REMOTE_ADDR'] == '192.168.50.1') {
$js_to_load = 'http://localhost:8080/bundle.js';
}
```
## About
This plugin is built with [Preact](https://preactjs.com/), and thus very small. It's JS is only loaded and injected onto the set admin page.