index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/user-restricted-data.mdx | ---
title: User-restricted access to data
description: Learn how to restrict access to data based on the user's role
---
Sometimes, you don’t want your users to search your entire index, but only a subset that concerns them.
Content might be restricted to a specific user as private data, a set of users, a group, or e... | 4,700 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/facets/_meta.json | {
"string-based-facets": "String Facets",
"numeric-based-facets": "Numeric Facets"
} | 4,701 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/facets/numeric-based-facets.mdx | ---
title: Numeric based
description: Searchkit supports a number of different instantsearch facet components. The following examples show what components are supported and how to add them to your search application.
keywords: searchkit, search, faceting
---
Searchkit API supports a number of different instantsearch f... | 4,702 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/facets/string-based-facets.mdx | ---
title: String based
description: Searchkit supports string based facet attributes. This page shows how to define a facet attribute and how to use it with instantsearch components.
keywords: searchkit, elasticsearch, instantsearch, facet, attribute, string
---
Searchkit API supports a number of different instantsea... | 4,703 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/_meta.json | {
"filter-by-string": "Filter By String value",
"filter-by-array": "Filter By Array value",
"filter-by-numeric-value": "Filter By Numeric value",
"filter-by-boolean": "Filter By Boolean value",
"filter-by-date": "Filter By Date value"
} | 4,704 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/filter-by-array.mdx | ---
title: Filtering of Arrays
description: Learn how to filter your search results by array of string values.
keywords: search, filter, array, string, values
---
You can filter your search results by array of string values. This is useful for filtering by documents with many authors or tags.
## Setup a String field
... | 4,705 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/filter-by-boolean.mdx | ---
title: Filter by boolean value
description: Filter your search results by boolean value
keywords: filter, boolean, value, in stock, out of stock
---
You can filter your search results by boolean. For example, you can filter your search results by `in_stock` to only show in stock products.
## Setup a boolean field... | 4,706 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/filter-by-date.mdx | ---
title: Filtering by Date
description: Learn how to filter your search results by date.
keywords: date, filter, date filtering
---
You can filter your search results by date. This is useful if you want to find all the documents that were created or modified in a specific time period.
## Setup a date field
To filt... | 4,707 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/filter-by-numeric-value.mdx | ---
title: Filter by numeric value
---
You can filter your search results by numeric value. For example, you can filter by price, rating, or any other numeric value.
## Setup a numeric field
To filter by numeric value, you must first set up a numeric field.
Indexing the following document into Elasticsearch will c... | 4,708 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides | petrpan-code/searchkit/searchkit/apps/web/pages/docs/guides/filters/filter-by-string.mdx | ---
title: Filtering by String
---
You can filter your search results by string values. This is useful for filtering by author, tags, or any other string value.
## Setup a String field
To filter by string, you must first add a keyword to your index.
Indexing the following document into Elasticsearch will create a `... | 4,709 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/_meta.json | {
"why": "Why Proxy Elasticsearch?",
"with-next-js": "With Next.js",
"with-express-js": "With Express.js",
"with-cloudflare-workers": "With Cloudflare Workers",
"with-your-own-server": "With your own API server"
} | 4,710 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/why.mdx | ---
title: Why Proxy Elasticsearch?
description: Explains why you should proxy Elasticsearch from the web and how to do it with Searchkit.
---
# Why Proxy Elasticsearch?
Elasticsearch is a powerful search engine, but it is not designed to be exposed to the web. It is designed to be used by other APIs, which are then ... | 4,711 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/with-cloudflare-workers.mdx | ---
title: With cloudflare workers
description: Use cloudflare workers to proxy search requests to Elasticsearch
---
# Proxy With Cloudflare Workers
For production use, we dont recommend calling Elasticsearch directly from the browser. Thankfully, Searchkit provides a way to proxy the search request through to a node... | 4,712 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/with-express-js.mdx | ---
title: With cloudflare workers
description: Use cloudflare workers to proxy search requests to Elasticsearch
---
# Proxy With Express.js
For production use, we dont recommend calling Elasticsearch directly from the browser. Thankfully, Searchkit provides a way to proxy the search request through to a node API. Th... | 4,713 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/with-next-js.mdx | ---
title: With Next.js
description: Use Next.js Functions to proxy search requests to Elasticsearch
---
# Proxy With Next.js Functions
For production use, we dont recommend calling Elasticsearch directly from the browser. Thankfully, Searchkit provides a way to proxy the search request through to a node API. This is... | 4,714 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/proxy-elasticsearch/with-your-own-server.mdx | ---
title: With your own API Server
description: Proxy Elasticsearch requests through your own application server
---
import { Callout } from 'nextra-theme-docs'
<Callout>
Document contributions welcome. This is a work in progress.
</Callout>
Continue to generate Elasticsearch queries from the browser with Searchkit ... | 4,715 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/_meta.json | {
"conditions": "Conditions",
"actions": "Actions"
}
| 4,716 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/facet-order.mdx | ---
title: Facets Order
description: "Learn how to use the RenderUserData action to send data to the frontend to perform a number of actions."
---
The `RenderFacetsOrder` action is used to render the facets in a specific order and show only facets specified. The `RenderFacetsOrder` action has the following properties:... | 4,717 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/pin-result.mdx | ---
title: Pin Result
description: Apply a pin result action rule
---
### `PinnedResult` Rule Action
The `PinnedResult` action is used to pin a document to the top of the search results.
The `PinnedResult` action has the following properties:
* `action`: The action to perform. This must be set to `PinnedResult`... | 4,718 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/query-boost.mdx | ---
title: Query Boost
description: Learn how to boost the relevance of your search results.
---
The `QueryBoost` action boosts the relevance of your search results. This action is useful when you want to boost the relevance of a specific documents which match a query.
* `action`: The action to perform. This must b... | 4,719 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/query-filter.mdx | ---
title: Query Filter
description: Learn how to filter documents from your search results.
---
The `QueryFilter` action refines the search results using filters. This action is useful when you want to filter out documents that do not match a specific condition. For example, you can use this action to filter out docu... | 4,720 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/query-rewrite.mdx | ### `QueryRewrite` Rule Action
The `QueryRewrite` action is used to rewrite the query. The `QueryRewrite` action has the following properties:
* `action`: The action to perform. This must be set to `QueryRewrite`.
* `query`: The query to rewrite.
Below is an example of the `QueryRewrite` action:
```json
{
"... | 4,721 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/actions/render-user-data.mdx | ---
title: Render Data
description: "Learn how to use the RenderUserData action to send data to the frontend to perform a number of actions."
---
The `RenderUserData` action is used to send data to the frontend to perform a number of actions on the frontend.
The `RenderUserData` action has the following properties:
... | 4,722 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/conditions/context.mdx | ---
title: Context
description: Apply a context condition rule
---
The `context` condition is used to match the context of the search. The `context` condition has the following properties:
* `context`: The context of the condition. This must be set to `context`.
* `value`: The value to match against. This must b... | 4,723 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/conditions/filters.mdx | ---
title: Filter
description: Apply a Filter Present condition rule
---
The `filterPresent` condition is used to apply actions where there are particular filters in the `facetfilters`. The `filterPresent` condition has the following properties:
* `context`: The context of the condition. This must be set to `filte... | 4,724 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules | petrpan-code/searchkit/searchkit/apps/web/pages/docs/query-rules/conditions/query-text.mdx | ---
title: Query Text
description: Apply a query condition rule
---
The `Query` condition is used to match the query string. The `Query` condition has the following properties:
* `context`: The context of the condition. This must be set to `query`.
* `match_type`: The type of match to perform. This can be set to... | 4,725 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/tutorials/_meta.json | {
"with-nextjs": "Build a Next.js App",
"build-availability-search-ui": "Availability Search UI"
}
| 4,726 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/tutorials/build-availability-search-ui.mdx | ---
title: How to build an availability search UI with Elasticsearch
description: In this example we are imagining a booking site for cabins.
keywords: ["nextjs", "searchkit", "tutorial", "walkthrough", "elasticsearch", "react", "javascript", "typescript", "search", "search ui", "search experience", "site search", "a... | 4,727 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/tutorials/semantic-search.mdx | ---
title: Semantic Search
description: Learn how to build a semantic search experience with Searchkit and Next.js
keywords: ["nextjs", "searchkit", "tutorial", "walkthrough", "elasticsearch", "react", "javascript", "typescript", "search", "search ui", "search experience", "site search", "semantic search"]
---
# Seman... | 4,728 |
0 | petrpan-code/searchkit/searchkit/apps/web/pages/docs | petrpan-code/searchkit/searchkit/apps/web/pages/docs/tutorials/with-nextjs.mdx | ---
title: Nextjs with Searchkit
description: Nextjs with Searchkit tutorial and walkthrough
keywords: ["nextjs", "searchkit", "tutorial", "walkthrough", "elasticsearch", "react", "javascript", "typescript", "search", "search ui", "search experience", "site search", "app search"]
---
import { Tabs, Tab } from '../../.... | 4,729 |
0 | petrpan-code/searchkit/searchkit/apps/web | petrpan-code/searchkit/searchkit/apps/web/public/robots.txt | # *
User-agent: *
Allow: /
# Host
Host: https://www.searchkit.co
# Sitemaps
Sitemap: https://www.searchkit.co/sitemap.xml
| 4,730 |
0 | petrpan-code/searchkit/searchkit/apps/web | petrpan-code/searchkit/searchkit/apps/web/public/sitemap-0.xml | <?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-ima... | 4,731 |
0 | petrpan-code/searchkit/searchkit/apps/web | petrpan-code/searchkit/searchkit/apps/web/public/sitemap.xml | <?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://www.searchkit.co/sitemap-0.xml</loc></sitemap>
</sitemapindex> | 4,732 |
0 | petrpan-code/searchkit/searchkit/apps/web | petrpan-code/searchkit/searchkit/apps/web/styles/globals.css | @tailwind base;
@tailwind components;
@tailwind utilities;
.nextra-sidebar-container a {
color: white;
}
html[class~="dark"] .dark\:nx-text-neutral-500.dark\:nx-text-neutral-500 {
color: rgba(150, 150, 150, var(--tw-text-opacity));
font-size: 0.95rem;
} | 4,733 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-cloudflare-workers/package.json | {
"name": "searchkit-with-cloudflare-workers",
"version": "1.0.0",
"description": "",
"main": "index.js",
"private": true,
"scripts": {},
"author": "",
"dependencies": {
"@searchkit/api": "*",
"searchkit": "*"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230321.0"
},
"l... | 4,734 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-cloudflare-workers/tsconfig.json | {
"compilerOptions": {
/* Visit https://aka.ms/tsconfig.json to read more about this file */
/* Projects */
// "incremental": true, /* Enable incremental compilation */
// "composite": true, /* Enable constraints that allow a TypeScript proj... | 4,735 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-cloudflare-workers/wrangler.toml | name = "my-searchkit-proxy"
main = "src/index.ts"
compatibility_date = "2022-10-30"
node_compat = false | 4,736 |
0 | petrpan-code/searchkit/searchkit/examples/with-cloudflare-workers | petrpan-code/searchkit/searchkit/examples/with-cloudflare-workers/src/index.ts | import Client from '@searchkit/api'
const client = Client({
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you're using Elastic cloud
// cloud_id: "<cloud-id-found-on-deployment-page>",
// if you are authenticating with api key
// https://www.searchkit.c... | 4,737 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-cjs/README.md | ### with-express-javascript-cjs
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search_settings` for your search experience.
3. Start ... | 4,738 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-cjs/index.js | const express = require('express')
const { default: Client } = require('@searchkit/api')
require('isomorphic-unfetch')
const app = express()
const config = {
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you're using Elastic cloud
// cloud_id: "<cloud-id-found... | 4,739 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-cjs/package.json | {
"name": "searchkit-with-express-javascript-cjs",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/searchkit/searchkit-express.git"
},
"scripts": {
"start": "node index.j... | 4,740 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-esm/README.md | ### Searchkit Express
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
This uses ESM modules and is compatible with Node.js 14+.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search... | 4,741 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-esm/index.js | import express from "express";
import Client from "@searchkit/api";
import 'isomorphic-unfetch'
const app = express();
const config = {
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you're using Elastic cloud
// cloud_id: "<cloud-id-found-on-deployment-page>",... | 4,742 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-javascript-esm/package.json | {
"name": "searchkit-with-express-javascript-esm",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"type": "module",
"scripts": {
"start": "node index.js"
},
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/searchkit/... | 4,743 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-cjs/README.md | ### Searchkit Express
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search_settings` for your search experience.
3. Start server. Th... | 4,744 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-cjs/package.json | {
"name": "searchkit-with-express-typescript-cjs",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/searchkit/searchkit-express.git"
},
"scripts": {
"dev": "ts-node ./src/... | 4,745 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-cjs/tsconfig.json | {
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNE... | 4,746 |
0 | petrpan-code/searchkit/searchkit/examples/with-express-typescript-cjs | petrpan-code/searchkit/searchkit/examples/with-express-typescript-cjs/src/index.ts | import express, { Application, Request, Response } from 'express'
import Client, { SearchkitConfig } from '@searchkit/api'
import 'isomorphic-unfetch'
const app: Application = express()
const config: SearchkitConfig = {
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// i... | 4,747 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm/README.md | ### Searchkit Express
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
This uses ESM modules and is compatible with Node.js 14+.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search... | 4,748 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm/package.json | {
"name": "searchkit-with-express-typescript-esm",
"private": true,
"version": "0.0.1",
"description": "",
"main": "index.js",
"type": "module",
"author": "",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/searchkit/searchkit-express.git"
},
"scripts": {
"d... | 4,749 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm/tsconfig.json | {
"compilerOptions": {
/* Basic Options */
// "incremental": true, /* Enable incremental compilation */
"target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNE... | 4,750 |
0 | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm/dist/index.js | import express from 'express';
import Client from '@searchkit/api';
import 'isomorphic-unfetch';
const app = express();
const config = {
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you are authenticating with api key
// https://www.searchkit.co/d... | 4,751 |
0 | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm | petrpan-code/searchkit/searchkit/examples/with-express-typescript-esm/src/index.ts | import express, { Application, Request, Response } from 'express'
import Client, { SearchkitConfig } from '@searchkit/api'
import 'isomorphic-unfetch'
const app = express()
const config: SearchkitConfig = {
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you're usin... | 4,752 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/CHANGELOG.md | # with-semantic-search-nextjs
## 0.1.13
### Patch Changes
- Updated dependencies [a6218b4b]
- searchkit@4.11.0
- @searchkit/api@4.11.0
- @searchkit/instantsearch-client@4.11.0
## 0.1.12
### Patch Changes
- Updated dependencies [12fffdd8]
- searchkit@4.10.2
## 0.1.11
### Patch Changes
- Updated dependen... | 4,753 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/README.md | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000... | 4,754 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/next.config.js | module.exports = {
reactStrictMode: false,
} | 4,755 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/package.json | {
"name": "with-semantic-search-nextjs",
"version": "0.1.13",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@searchkit/api": "4.11.0",
"@searchkit/instantsearch-client": "4.11.0",
"@types/n... | 4,756 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolut... | 4,757 |
0 | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/app/layout.tsx | import "instantsearch.css/themes/satellite-min.css"
import '@/styles/globals.css'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
} | 4,758 |
0 | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/app/page.tsx | 'use client'
import {
InstantSearch,
SearchBox,
Hits,
RefinementList,
Pagination,
Stats,
CurrentRefinements,
Configure,
DynamicWidgets,
useQueryRules
} from 'react-instantsearch'
import Client from '@searchkit/instantsearch-client'
const searchClient = Client({
url: '/api/search'
})
const HitVie... | 4,759 |
0 | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/app/api | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/app/api/search/route.ts | import { NextRequest, NextResponse } from 'next/server'
import API from '@searchkit/api'
const apiClient = API(
{
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you are authenticating with api key
// https://www.searchkit.co/docs/guides/setup-elasticse... | 4,760 |
0 | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs | petrpan-code/searchkit/searchkit/examples/with-semantic-search-nextjs/styles/globals.css | body,
h1 {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
em {
background: cyan;
font-style: normal;
}
.header {
display: flex;
align-items: center;
min-h... | 4,761 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/README.md | ### with-express-javascript-cjs
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search_settings` for your search experience.
3. Start ... | 4,762 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Instantsearch JS Example</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite-min.css">
</head>
<body>... | 4,763 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/package.json | {
"name": "searchkit-with-instantsearchjs-and-analytics",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"preview": "vite preview"
},
"dependencies": {
"@searchkit/instantsearch-client": "4.11.0",
"@searchkit/elastic-behavioral-analytics-plugin": "2.1.0"... | 4,764 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/tsconfig.json | {
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals... | 4,765 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/src/main.ts | import './style.css'
import Searchkit, { SearchkitConfig } from 'searchkit'
import SearchkitInstantsearchClient from '@searchkit/instantsearch-client'
import instantsearch from 'instantsearch.js'
import {
searchBox,
refinementList,
hits,
pagination,
rangeInput,
rangeSlider,
sortBy
} from 'instantsearch.js... | 4,766 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/src/style.css | body,
h1 {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
em {
background: cyan;
font-style: normal;
}
.header {
display: flex;
align-items: center;
min-h... | 4,767 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs-and-analytics/src/vite-env.d.ts | /// <reference types="vite/client" />
| 4,768 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/README.md | ### with-express-javascript-cjs
Example of using Searchkit with Express.js to proxy frontend search requests to Elasticsearch.
### Setup
1. Install dependencies
```
npm install
```
2. Update the Searchkit configuration in `index.js` with the `connection` and `search_settings` for your search experience.
3. Start ... | 4,769 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Instantsearch JS Example</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7/themes/satellite-min.css">
</head>
<body>... | 4,770 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/package.json | {
"name": "searchkit-with-instantsearchjs",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"preview": "vite preview"
},
"dependencies": {
"instantsearch.js": "^4.46.0",
"searchkit": "*",
"@searchkit/instantsearch-client": "*"
},
"devDependencies"... | 4,771 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/tsconfig.json | {
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals... | 4,772 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/src/main.ts | import './style.css'
import Searchkit, { SearchkitConfig } from 'searchkit'
import SearchkitInstantsearchClient from '@searchkit/instantsearch-client'
import instantsearch from 'instantsearch.js'
import {
searchBox,
refinementList,
hits,
pagination,
rangeInput,
rangeSlider
} from 'instantsearch.js/es/widget... | 4,773 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/src/style.css | body,
h1 {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
em {
background: cyan;
font-style: normal;
}
.header {
display: flex;
align-items: center;
min-h... | 4,774 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs | petrpan-code/searchkit/searchkit/examples/with-ui-instantsearchjs/src/vite-env.d.ts | /// <reference types="vite/client" />
| 4,775 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/CHANGELOG.md | # with-ui-nextjs-react
## 0.1.13
### Patch Changes
- Updated dependencies [a6218b4b]
- searchkit@4.11.0
- @searchkit/api@4.11.0
- @searchkit/instantsearch-client@4.11.0
## 0.1.12
### Patch Changes
- Updated dependencies [12fffdd8]
- searchkit@4.10.2
## 0.1.11
### Patch Changes
- Updated dependencies
... | 4,776 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/README.md | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
## Getting Started
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```
Open [http://localhost:3000](http://localhost:3000... | 4,777 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/next.config.js | module.exports = {
reactStrictMode: false,
} | 4,778 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/package.json | {
"name": "with-ui-nextjs-react",
"version": "0.1.13",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@searchkit/api": "4.11.0",
"@searchkit/instantsearch-client": "4.11.0",
"@types/node": "... | 4,779 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/tsconfig.json | {
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolut... | 4,780 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/app/layout.tsx | import "instantsearch.css/themes/satellite-min.css"
import '@/styles/globals.css'
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
} | 4,781 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/app/page.tsx | 'use client'
import {
InstantSearch,
SearchBox,
Hits,
Highlight,
RefinementList,
Pagination,
Stats,
Snippet,
CurrentRefinements,
HierarchicalMenu,
Configure,
DynamicWidgets,
RangeInput,
useQueryRules
} from 'react-instantsearch'
import Client from '@searchkit/instantsearch-client'
const sea... | 4,782 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/app/api | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/app/api/search/route.ts | import { NextRequest, NextResponse } from 'next/server'
import API, { MatchFilter } from '@searchkit/api'
const apiClient = API(
{
connection: {
host: 'https://commerce-demo.es.us-east4.gcp.elastic-cloud.com:9243',
// if you are authenticating with api key
// https://www.searchkit.co/docs/guide... | 4,783 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react | petrpan-code/searchkit/searchkit/examples/with-ui-nextjs-react/styles/globals.css | body,
h1 {
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}
em {
background: cyan;
font-style: normal;
}
.header {
display: flex;
align-items: center;
min-h... | 4,784 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/README.md | # Vue Searchkit Example
to download the project and try out, run:
```bash
curl https://codeload.github.com/searchkit/searchkit/tar.gz/main | \
tar -xz --strip=2 searchkit-main/examples/with-ui-vue
```
## Play on Codesandbox
https://codesandbox.io/s/github/searchkit/searchkit/tree/main/examples/with-ui-vue
## Instal... | 4,785 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/_gitignore | # Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
| 4,786 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue + TS</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch... | 4,787 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/package.json | {
"name": "searchkit-with-ui-vue",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vue-tsc && vite build",
"preview": "vite preview"
},
"dependencies": {
"vue": "^3.2.47",
"searchkit": "latest",
"@searchkit/instantsearch-client": "latest... | 4,788 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/tsconfig.json | {
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"moduleResolution": "Node",
"strict": true,
"jsx": "preserve",
"allowJs":true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"lib": ["ESNext", "DOM... | 4,789 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/tsconfig.node.json | {
"compilerOptions": {
"composite": true,
"module": "ESNext",
"moduleResolution": "Node",
"allowSyntheticDefaultImports": true
},
"include": ["vite.config.ts"]
}
| 4,790 |
0 | petrpan-code/searchkit/searchkit/examples | petrpan-code/searchkit/searchkit/examples/with-ui-vue/vite.config.ts | import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
})
| 4,791 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-vue | petrpan-code/searchkit/searchkit/examples/with-ui-vue/src/App.vue | <template>
<div>
<header class="header">
<h1 class="header-title">
<a href="/">
vue-instantsearch-app
</a>
</h1>
<p class="header-subtitle">
using
<a href="https://github.com/algolia/vue-instantsearch">
Vue InstantSearch
</a>
</p>... | 4,792 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-vue | petrpan-code/searchkit/searchkit/examples/with-ui-vue/src/main.ts | import { createApp } from 'vue'
import InstantSearch from 'vue-instantsearch/vue3/es'
import App from './App.vue'
createApp(App).use(InstantSearch).mount('#app')
| 4,793 |
0 | petrpan-code/searchkit/searchkit/examples/with-ui-vue | petrpan-code/searchkit/searchkit/examples/with-ui-vue/src/vite-env.d.ts | /// <reference types="vite/client" />
| 4,794 |
0 | petrpan-code/searchkit/searchkit | petrpan-code/searchkit/searchkit/notebooks/semantic-search.ipynb | # install packages
!python3 -m pip install -qU sentence-transformers eland elasticsearch transformers
# import modules
import pandas as pd, json
from elasticsearch import Elasticsearch
from getpass import getpass
from urllib.request import urlopenAPI_KEY = getpass("Elastic deployment API Key")
CLOUD_ID = getpass("Elas... | 4,795 |
0 | petrpan-code/searchkit/searchkit/packages | petrpan-code/searchkit/searchkit/packages/eslint-config-custom/index.js | module.exports = {
extends: ["next", "turbo", "prettier"],
rules: {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
},
};
| 4,796 |
0 | petrpan-code/searchkit/searchkit/packages | petrpan-code/searchkit/searchkit/packages/eslint-config-custom/package.json | {
"name": "eslint-config-custom",
"version": "0.0.0",
"main": "index.js",
"private": true,
"license": "MIT",
"dependencies": {
"eslint": "^7.23.0",
"eslint-config-next": "^12.0.8",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "7.33.2",
"eslint-config-turbo": "latest"
},
... | 4,797 |
0 | petrpan-code/searchkit/searchkit/packages | petrpan-code/searchkit/searchkit/packages/searchkit-api/CHANGELOG.md | # @searchkit/api
## 4.11.0
### Minor Changes
- a6218b4b: Runtime fields support
### Patch Changes
- Updated dependencies [a6218b4b]
- searchkit@4.11.0
## 4.10.1
### Patch Changes
- fix issue where rank is provided when no query
- Updated dependencies
- searchkit@4.10.1
## 4.10.0
### Minor Changes
- 5f05c... | 4,798 |
0 | petrpan-code/searchkit/searchkit/packages | petrpan-code/searchkit/searchkit/packages/searchkit-api/README.md | # Elasticsearch Search UI Components
Searchkit is an open source library which helps you build a great search experience with **Elasticsearch**.
Works with Javascript, React, Vue, Angular, and more.
[](https://badge.fury.io/js/searchkit)
[Website](https://www.sear... | 4,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.