diff --git a/HTML/EN/html/docs/cli-api.html b/HTML/EN/html/docs/cli-api.html
index 9e07fc018ef..8c107247b60 100644
--- a/HTML/EN/html/docs/cli-api.html
+++ b/HTML/EN/html/docs/cli-api.html
@@ -45,6 +45,11 @@
Introduction
Changelog
+Changes starting from Squeezebox Server 8.2
+
+ - Added query to figure out whether fulltext search is enabled or not (fulltextsearch).
+
+
Changes starting from Squeezebox Server 8.0
- Added support for external IDs: when libraries from online music services are imported, artists, albums, and titles
@@ -8762,6 +8767,9 @@
-
apps
+ -
+
fulltextsearch
+
-
Live Music Archive, MP3tunes, Pandora, Podcasts, RadioTime, Napster, Shoutcast, Staff Picks, RSS
@@ -8909,6 +8917,28 @@
+
+
+
+
+ fulltextsearch ?
+
+
+
+
+ The "fulltextsearch" query returns a flag to tell whether the fulltext search is available.
+
+
+ Example:
+
+
+
+ Request: "fulltextsearch ?<LF>"
+
+ Response: "fulltextsearch 1<LF>"
+
+
+
Live Music Archive, MP3tunes, Pandora, Podcasts, RadioTime, Napster, Shoutcast, Staff Picks, RSS
diff --git a/Slim/Plugin/FullTextSearch/Plugin.pm b/Slim/Plugin/FullTextSearch/Plugin.pm
index 32e2a61bce5..6cc28af533d 100644
--- a/Slim/Plugin/FullTextSearch/Plugin.pm
+++ b/Slim/Plugin/FullTextSearch/Plugin.pm
@@ -146,6 +146,11 @@ sub initPlugin {
Slim::Utils::Timers::setTimer( $_[1], time() + 1, \&checkPlaylist, $_[0] );
}, want_object => 1 } );
+ # allow external callers to figure out whether FTS is enabled or not
+ Slim::Control::Request::addDispatch(['fulltextsearch', '?'], [0, 1, 0, sub {
+ $_[0]->addResult('_can', Slim::Schema->canFulltextSearch ? 1 : 0);
+ }]);
+
# don't continue if the library hasn't been initialized yet, or if a schema change is going to trigger a rescan anyway
return unless Slim::Schema->hasLibrary() && !Slim::Schema->schemaUpdated;