-
💬 @tbulvaHere is how to enable the Advanced search (https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/elasticsearch.md).
it should be as easy as these three steps:
- Run
gdk config set elasticsearch.enabled true - Run
gdk reconfigure. - Go to admin settings and enable it in the UI don't forget to click the
index the instancebutton
After you are successful. Your settings should look like this:
Your search page will look like this (notice the
Codescope andAdvanced Searchabove the search input field):This step is a bit more involved (https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/zoekt.md#configure-zoekt-in-development).
two steps to enable:
- Run
gdk config set zoekt.enabled true. - Run
gdk reconfigure. - Run this in your terminal:
echo 'ApplicationSetting.current.update!(zoekt_settings: { zoekt_indexing_enabled: true, zoekt_indexing_paused: false, zoekt_search_enabled: true, zoekt_cpu_to_tasks_ratio: 1.0 }) zoekt_node = ::Search::Zoekt::Node.online.last namespace = Namespace.find_by_full_path("flightjs") # Some namespace you want to enable enabled_namespace = Search::Zoekt::EnabledNamespace.find_or_create_by(namespace: namespace) zoekt_node.indices.find_or_create_by!(zoekt_enabled_namespace_id: enabled_namespace.id, namespace_id: namespace.id, zoekt_replica_id: Search::Zoekt::Replica.for_enabled_namespace!(enabled_namespace).id)' | rails cThis step might take a minute or two to process. You can check on the namespace indexing status using this:
echo 'Search::Zoekt::Index.all' | rails cAfter you enable Exact code search you should also see this:
Your search will look like this (notice the
Exact code searchabove the search input field): - Run
Please register or sign in to comment



