Go back to Algolia search

This commit is contained in:
Jordan Eldredge 2025-02-02 10:45:35 -08:00
parent 925760af1d
commit 020ad85401
2 changed files with 3 additions and 3 deletions

View file

@ -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(
{

View file

@ -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,