Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use Meilisearch for solver-network content type #55

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bram-vdberg
Copy link
Contributor

This PR adds Meilisearch rather than the built-in content-manager search function.

The built-in search function relies on fuzzy matching and doesn't search all of the fields within a content-type. This makes it hard to search for specific fields without lots of configuring. In order to make the CMS easier to use we would want to be able to configure our search function to search within content types using just the search bar, rather than configuring filters.

Changes

  • Add custom /api/solver-network/search API endpoint to query the solver-network content type using Meilisearch.

Todo: Update the UI to query Meilisearch. At the moment this can only be tested by going into the cow-cms container and curling the http://localhost:1337/api/solver-network/search?q={query} search endpoint manually.

Copy link

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/code-frame@7.26.2 🔁 npm/@babel/code-frame@7.22.13 environment 0 33.2 kB nicolo-ribaudo
npm/@babel/generator@7.26.5 🔁 npm/@babel/generator@7.22.15 None 0 551 kB nicolo-ribaudo
npm/@babel/helper-annotate-as-pure@7.25.9 🔁 npm/@babel/helper-annotate-as-pure@7.22.5 None 0 4.05 kB nicolo-ribaudo
npm/@babel/helper-module-imports@7.25.9 🔁 npm/@babel/helper-module-imports@7.22.15 None 0 63.7 kB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.26.5 None 0 12 kB existentialism, hzoo, jlhwung, ...1 more
npm/@babel/helper-string-parser@7.25.9 🔁 npm/@babel/helper-string-parser@7.22.5 None 0 31.8 kB nicolo-ribaudo
npm/@babel/helper-validator-identifier@7.25.9 🔁 npm/@babel/helper-validator-identifier@7.22.15 None 0 48.3 kB nicolo-ribaudo
npm/@babel/parser@7.26.7 🔁 npm/@babel/parser@7.22.16 None 0 1.91 MB nicolo-ribaudo
npm/@babel/plugin-syntax-jsx@7.25.9 🔁 npm/@babel/plugin-syntax-jsx@7.22.5 Transitive: environment, filesystem +17 4.82 MB nicolo-ribaudo
npm/@babel/template@7.25.9 None 0 70.3 kB nicolo-ribaudo
npm/@babel/traverse@7.26.7 🔁 npm/@babel/traverse@7.22.15 None 0 674 kB nicolo-ribaudo
npm/@babel/types@7.26.7 🔁 npm/@babel/types@7.22.15 None 0 2.56 MB nicolo-ribaudo
npm/@emotion/unitless@0.7.5 environment 0 8.26 kB emotion-release-bot
npm/@jridgewell/gen-mapping@0.3.8 None 0 81.6 kB jridgewell
npm/@jridgewell/resolve-uri@3.1.1 None 0 55.2 kB jridgewell
npm/@jridgewell/set-array@1.2.1 None 0 17.9 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.25 🔁 npm/@jridgewell/trace-mapping@0.3.19 None 0 169 kB jridgewell
npm/ansi-regex@2.1.1 🔁 npm/ansi-regex@5.0.1 None 0 4.19 kB qix
npm/ansi-styles@4.3.0 None +1 44.2 kB sindresorhus
npm/better-sqlite3@8.5.0 filesystem Transitive: environment +2 9.64 MB joshuawise
npm/brace-expansion@2.0.1 None 0 11.5 kB juliangruber
npm/debug@4.3.4 environment +1 49.2 kB qix
npm/define-data-property@1.1.4 None 0 30.9 kB ljharb
npm/es-define-property@1.0.0 None 0 11.8 kB ljharb
npm/es-errors@1.3.0 None 0 12.3 kB ljharb
npm/function-bind@1.1.2 None 0 31.4 kB ljharb
npm/get-intrinsic@1.2.4 eval 0 41.6 kB ljharb
npm/gopd@1.0.1 None 0 7.7 kB ljharb
npm/has-property-descriptors@1.0.2 None 0 10.9 kB ljharb
npm/hasown@2.0.2 None 0 8.77 kB ljharb
npm/isarray@0.0.1 None 0 6.82 kB juliangruber
npm/jsesc@3.1.0 None 0 32.3 kB mathias
npm/memoize-one@5.2.1 🔁 npm/memoize-one@6.0.0 None 0 21.8 kB alexreardon
npm/openapi-fetch@0.9.3 network +1 125 kB drewpowers
npm/openapi-typescript@6.7.5 Transitive: environment, filesystem +16 1.39 MB drewpowers
npm/patch-package@8.0.0 environment, filesystem Transitive: eval, shell +23 2 MB ds300
npm/pg@8.11.3 environment, network Transitive: filesystem +9 435 kB brianc
npm/picocolors@1.1.1 🔁 npm/picocolors@1.0.0 None 0 6.37 kB alexeyraspopov

🚮 Removed packages: npm/@babel/helper-environment-visitor@7.22.5, npm/@babel/helper-function-name@7.22.5, npm/@babel/helper-hoist-variables@7.22.5, npm/@babel/helper-split-export-declaration@7.22.6, npm/@babel/highlight@7.22.13, npm/@esbuild/android-arm64@0.16.17, npm/@esbuild/android-arm@0.16.17, npm/@esbuild/android-x64@0.16.17, npm/@esbuild/darwin-arm64@0.16.17, npm/@esbuild/darwin-x64@0.16.17, npm/@esbuild/freebsd-arm64@0.16.17, npm/@esbuild/freebsd-x64@0.16.17, npm/@esbuild/linux-arm64@0.16.17, npm/@esbuild/linux-arm@0.16.17, npm/@esbuild/linux-ia32@0.16.17, npm/@esbuild/linux-loong64@0.16.17, npm/@esbuild/linux-mips64el@0.16.17, npm/@esbuild/linux-ppc64@0.16.17, npm/@esbuild/linux-riscv64@0.16.17, npm/@esbuild/linux-s390x@0.16.17, npm/@esbuild/netbsd-x64@0.16.17, npm/@esbuild/openbsd-x64@0.16.17, npm/@esbuild/sunos-x64@0.16.17, npm/@esbuild/win32-arm64@0.16.17, npm/@esbuild/win32-ia32@0.16.17, npm/@esbuild/win32-x64@0.16.17, npm/codemirror5@5.65.15, npm/fsevents@2.3.3, npm/is-plain-object@5.0.0, npm/postcss-modules-extract-imports@3.0.0, npm/postcss-modules-local-by-default@4.0.3, npm/postcss-modules-scope@3.0.0, npm/postcss-modules-values@4.0.0, npm/prebuild-install@7.1.1, npm/prettier@2.8.4, npm/pretty-error@4.0.0, npm/pretty-time@1.1.0, npm/property-expr@2.0.5, npm/proxy-addr@2.0.7, npm/proxy-from-env@1.1.0, npm/pump@3.0.0, npm/purest@4.0.2, npm/react-dnd-html5-backend@15.1.3, npm/react-dnd@15.1.2, npm/react-dom@18.2.0, npm/react-error-boundary@3.1.4, npm/react-fast-compare@2.0.4, npm/react-helmet@6.1.0, npm/react-intl@6.4.1, npm/react-query@3.39.3, npm/react-redux@8.1.1, npm/react-refresh@0.14.0, npm/react-remove-scroll-bar@2.3.4, npm/react-router-dom@5.3.4, npm/react-router@5.3.4, npm/react-select@5.7.0, npm/react-side-effect@2.1.2, npm/react-style-singleton@2.2.1, npm/react-transition-group@4.4.5, npm/react-window@1.8.8, npm/react@18.2.0, npm/readdirp@3.6.0, npm/redux@4.2.1, npm/regenerator-runtime@0.14.0, npm/registry-auth-token@4.2.2, npm/registry-url@5.1.0, npm/relateurl@0.2.7, npm/remove-accents@0.4.2, npm/renderkid@3.0.0, npm/request-compose@2.1.6, npm/request-ip@3.3.0, npm/request-multipart@1.0.0, npm/request-oauth@1.0.1, npm/require-directory@2.1.1, npm/reselect@4.1.7, npm/resolve-cwd@3.0.0, npm/resolve-path@1.4.0, npm/resolve-pathname@3.0.0, npm/resolve@1.22.4, npm/responselike@2.0.1, npm/retry@0.13.1, npm/run-async@2.4.1, npm/safe-buffer@5.2.1, npm/safe-stable-stringify@2.4.3, npm/safer-buffer@2.1.2, npm/sanitize-html@2.11.0, npm/scheduler@0.23.0, npm/select-hose@2.0.0, npm/selfsigned@2.1.1, npm/send@0.18.0, npm/sendmail@1.6.1, npm/sentence-case@2.1.1, npm/serialize-javascript@6.0.1, npm/serve-index@1.9.1, npm/serve-static@1.15.0, npm/setprototypeof@1.2.0, npm/shallowequal@1.1.0, npm/sharp@0.32.0, npm/shebang-command@2.0.0, npm/shebang-regex@3.0.0, npm/shell-quote@1.8.1, npm/side-channel@1.0.4, npm/sift@16.0.1, npm/simple-concat@1.0.1, npm/snake-case@2.1.0, npm/sockjs@0.3.24, npm/sorted-array-functions@1.3.0, npm/source-list-map@2.0.1, npm/source-map-js@1.0.2, npm/spdy-transport@3.0.0, npm/spdy@4.0.2, npm/stack-trace@0.0.10, npm/stackframe@1.3.4, npm/std-env@3.4.3, npm/stream-chain@2.2.5, npm/stream-json@1.8.0, npm/stream-slice@0.1.2, npm/string-argv@0.3.2, npm/strip-final-newline@2.0.0, npm/style-loader@3.3.1, npm/styled-components@5.3.3, npm/stylis@4.2.0, npm/supports-preserve-symlinks-flag@1.0.0, npm/swagger-ui-dist@4.19.0, npm/swap-case@1.1.2, npm/tar-fs@2.1.1, npm/tar-stream@2.2.0, npm/tar@6.1.13, npm/tarn@3.0.2, npm/terser-webpack-plugin@5.3.9, npm/thenify-all@1.6.0, npm/thenify@3.3.1, npm/through2@2.0.5, npm/through@2.3.8, npm/tildify@2.0.0, npm/tiny-invariant@1.3.1, npm/tiny-warning@1.0.3, npm/title-case@2.1.1, npm/tmp@0.0.33, npm/to-fast-properties@2.0.0, npm/toidentifier@1.0.1, npm/toposort@2.0.2, npm/tr46@0.0.3, npm/triple-beam@1.4.1, npm/tsscmp@1.0.6, npm/tunnel-agent@0.6.0, npm/type-is@1.6.18, npm/typedarray-to-buffer@3.1.5, npm/typescript@5.1.3, npm/uglify-js@3.17.4, npm/umzug@3.2.1, npm/unique-string@2.0.0, npm/universalify@2.0.0, npm/unload@2.2.0, npm/untildify@4.0.0, npm/update-browserslist-db@1.0.11, npm/url-join@4.0.1, npm/use-callback-ref@1.3.0, npm/use-isomorphic-layout-effect@1.1.2, npm/use-sidecar@1.1.2, npm/use-sync-external-store@1.2.0, npm/user-home@1.1.1, npm/util-deprecate@1.0.2, npm/uuid@8.3.2, npm/v8flags@2.1.1, npm/value-equal@1.0.1, npm/vary@1.1.2, npm/w3c-keyname@2.2.8, npm/watchpack@2.4.0, npm/wcwidth@1.0.1, npm/webidl-conversions@3.0.1, npm/webpack-cli@5.1.4, npm/webpack-dev-middleware@5.3.3, npm/webpack-dev-server@4.15.1, npm/webpack-merge@5.9.0, npm/webpack-sources@1.4.3, npm/webpack@5.88.2, npm/webpackbar@5.0.2, npm/whatwg-url@5.0.0, npm/widest-line@3.1.0, npm/wildcard@2.0.1, npm/winston-transport@4.5.0, npm/winston@3.10.0, npm/wordwrap@1.0.0, npm/wrappy@1.0.2, npm/write-file-atomic@3.0.3, npm/ws@8.13.0, npm/xdg-basedir@4.0.0, npm/xtend@4.0.2, npm/y18n@5.0.8, npm/yargs-parser@20.2.9, npm/yargs@16.2.0, npm/ylru@1.3.2, npm/yup@0.32.9

View full report↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant