mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
Go back to Algolia search
This commit is contained in:
parent
925760af1d
commit
020ad85401
2 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@ export async function graphqlSearch(query, options = {}) {
|
|||
return { hits };
|
||||
}
|
||||
|
||||
export function search(query, options = {}) {
|
||||
export function algoliaSearch(query, options = {}) {
|
||||
return new Promise((resolve, reject) => {
|
||||
index.search(
|
||||
{
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {
|
|||
takeWhile,
|
||||
mergeAll,
|
||||
} from "rxjs/operators";
|
||||
import { graphqlSearch } from "../algolia";
|
||||
import { algoliaSearch } from "../algolia";
|
||||
import queryParser from "../queryParser";
|
||||
import { CHUNK_SIZE } from "../constants";
|
||||
import * as UploadUtils from "../upload/uploadUtils";
|
||||
|
|
@ -148,7 +148,7 @@ const searchEpic = (actions) =>
|
|||
|
||||
const [newQuery, options] = queryParser(query);
|
||||
|
||||
return from(graphqlSearch(newQuery, options)).pipe(
|
||||
return from(algoliaSearch(newQuery, options)).pipe(
|
||||
map((content) => {
|
||||
const matchingSkins = content.hits.map((hit) => ({
|
||||
hash: hit.objectID,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue