Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ yarn add @meilisearch/instant-meilisearch
```

InstantMeiliSearch is a client for `instantsearch.js`. It does not create any UI component by itself.<br>
To be able to create a search interface, you'll need to [install `instantsearch.js`](https://www.algolia.com/doc/guides/building-search-ui/installation/js/) as well.
To be able to create a search interface, you'll need to [install `instantsearch.js`](https://www.algolia.com/doc/guides/building-search-ui/installation/js/) as well.

## Usage

Expand All @@ -68,7 +68,7 @@ To be able to create a search interface, you'll need to [install `instantsearch.
import { instantMeiliSearch } from '@meilisearch/instant-meilisearch'

const searchClient = instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25'
)
```
Expand All @@ -79,7 +79,7 @@ const searchClient = instantMeiliSearch(
import { instantMeiliSearch } from '@meilisearch/instant-meilisearch'

const searchClient = instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
{
paginationTotalHits: 30, // default: 200.
Expand Down Expand Up @@ -132,7 +132,7 @@ In `app.js`:
const search = instantsearch({
indexName: 'steam-video-games',
searchClient: instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25'
),
})
Expand Down Expand Up @@ -253,7 +253,7 @@ List of all the components that are available in [instantSearch](https://github.
const search = instantsearch({
indexName: 'instant_search',
searchClient: instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
{
// ... InstantMeiliSearch options
Expand Down
8 changes: 5 additions & 3 deletions cypress/integration/search-ui.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ describe(`${playground} playground test`, () => {
cy.get(checkbox).eq(1).click()
if (playground === 'react') cy.contains('1,939')
if (playground === 'angular') cy.contains('1939')
cy.get(HIT_ITEM_CLASS).eq(0).contains('Kings Quest Collection')
cy.get(HIT_ITEM_CLASS).eq(0).contains('19.99 $')
cy.get(HIT_ITEM_CLASS)
.eq(0)
.contains('Safecracker: The Ultimate Puzzle Adventure')
cy.get(HIT_ITEM_CLASS).eq(0).contains('4.99 $')
})

it('Search', () => {
Expand Down Expand Up @@ -92,7 +94,7 @@ describe(`${playground} playground test`, () => {
if (playground === 'vue') cy.get('.ais-Pagination-item').eq(3).click()
else cy.get('.ais-Pagination-item--page').eq(1).click()
cy.wait(500)
cy.get(HIT_ITEM_CLASS).eq(0).contains('Kings Quest Collection')
cy.get(HIT_ITEM_CLASS).eq(0).contains('Darwinia')
}
})
})
2 changes: 1 addition & 1 deletion playgrounds/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component } from '@angular/core'
import { instantMeiliSearch } from '../../../../src'

const searchClient = instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25'
)

Expand Down
4 changes: 2 additions & 2 deletions playgrounds/geo-javascript/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ injectScript(
const search = instantsearch({
indexName: 'world_cities',
searchClient: instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
{
limitPerRequest: 200,
limitPerRequest: 20,
}
),
})
Expand Down
6 changes: 3 additions & 3 deletions playgrounds/geo-javascript/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1414,9 +1414,9 @@ caniuse-api@^3.0.0:
lodash.uniq "^4.5.0"

caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001219:
version "1.0.30001251"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001251.tgz"
integrity sha512-HOe1r+9VkU4TFmnU70z+r7OLmtR+/chB1rdcJUeQlAinjEeb0cKL20tlAtOagNZhbrtLnCvV19B4FmF1rgzl6A==
version "1.0.30001283"
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001283.tgz"
integrity sha512-9RoKo841j1GQFSJz/nCXOj0sD7tHBtlowjYlrqIUS812x9/emfBLBt6IyMz1zIaYc/eRL8Cs6HPUVi2Hzq4sIg==

caseless@~0.12.0:
version "0.12.0"
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/html/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
const search = instantsearch({
indexName: "steam-video-games",
searchClient: instantMeiliSearch(
"https://demos.meilisearch.com",
"https://integration-demos.meilisearch.com",
"dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25"
)
});
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/javascript/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { instantMeiliSearch } from '../../../src/index'
const search = instantsearch({
indexName: 'steam-video-games',
searchClient: instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
{
limitPerRequest: 30,
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/react/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import './App.css'
import { instantMeiliSearch } from '../../../src/index'

const searchClient = instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25',
{
paginationTotalHits: 60,
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/vue/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default {
return {
recommendation: '',
searchClient: instantMeiliSearch(
'https://demos.meilisearch.com',
'https://integration-demos.meilisearch.com',
'dc3fedaf922de8937fdea01f0a7d59557f1fd31832cb8440ce94231cfdde7f25'
),
}
Expand Down