The easiest way to speed up queries from Explorer's search bar is to enable Full-Text Search (FTS). FTS indexes all the literals in the database (does not include virtual data), which makes it faster to do text lookups. Per our Explorer docs page:
> Explorer will use full-text search when it is enabled for a database. When full-text search is not enabled, Explorer searches based on starts with, ends with, and contains patterns.
(Read more about these patterns in sections 17.4.3.6-8 of the SPARQL spec.)
You can enable FTS like so:
- Offline the database where you'd like to enable FTS.
stardog-admin db offline -- yourDb
- Turn on FTS.
stardog-admin metadata set -o search.enabled=true -- yourDb
- Online the database.
stardog-admin db online -- yourDb
This should speed up queries from the search bar considerably. Keep in mind, however, that the search bar is intended for data exploration. If you know what you're looking for, Explorer's query builder is much faster.
If you've enabled FTS and your search bar queries are still very slow, open a support ticket and attach a .har file. Please also include the output of stardog-admin metadata get -o search.enabled -- yourDb
showing that FTS is enabled.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article