You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This introduces a new system property, `conversation.search.index-enabled`, that, when set to 'false', disables the full-text search functionality and corresponding indexing tasks.
Disabling this functionality can save some resources on instances that do not use the feature, and have a large amount of messages in their database.
Copy file name to clipboardexpand all lines: src/i18n/monitoringservice_i18n.properties
+3-2
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,11 @@ system_property.conversation.maxTime=The max number of minutes a conversation ca
22
22
system_property.conversation.messageArchiving=Enable archiving of one-to-one messages
23
23
system_property.conversation.metadataArchiving=Enable archiving of conversation metadata
24
24
system_property.conversation.roomArchiving=Enable archiving of MUC messages
25
-
system_property.conversation.roomArchiving.PMinPersonalArchive=Controls whether MUC PMs are stored in the Personal Archive for the purposes of Message Arrchiving (XEP-0313)
26
-
system_property.conversation.roomArchiving.PMinRoomArchive=Controls whether MUC PMs are stored in the Room Archive for the purposes of Message Arrchiving (XEP-0313)
25
+
system_property.conversation.roomArchiving.PMinPersonalArchive=Controls whether MUC PMs are stored in the Personal Archive for the purposes of Message Archiving (XEP-0313)
26
+
system_property.conversation.roomArchiving.PMinRoomArchive=Controls whether MUC PMs are stored in the Room Archive for the purposes of Message Archiving (XEP-0313)
27
27
system_property.conversation.roomArchivingStanzas=Enable storing of full stanzas when MUC messages are archived
28
28
system_property.conversation.roomsArchived=List of MUC rooms in which to archive messages. When empty, all rooms are archived.
29
+
system_property.conversation.search.index-enabled=Controls if the full-text search index (Lucene) is enabled.
29
30
system_property.conversation.search.updateInterval=How often, in minutes, to update the search index
30
31
system_property.monitoring.search.allow-unrecognized-fields=If 'true', silently ignores unrecognized search filters in queries, which otherwise result in error responses.
31
32
system_property.stats.mock.viewer=Displays random stats in Monitoring plugin admin pages
Copy file name to clipboardexpand all lines: src/i18n/monitoringservice_i18n_nl.properties
+3-2
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,11 @@ system_property.conversation.maxTime=Het maximaal aantal minuten dat een convers
22
22
system_property.conversation.messageArchiving=Schakel archivering van een-op-een berichten in
23
23
system_property.conversation.metadataArchiving=Schakel archivering van metadata van gesprekken in
24
24
system_property.conversation.roomArchiving=Schakel archivering van MUC-berichten in
25
-
system_property.conversation.roomArchiving.PMinPersonalArchive=Bepaald of MUC PMs worden opgeslagen in het Persoonlijk Archief als onderdeel van Message Archiving (XEP-0313)
26
-
system_property.conversation.roomArchiving.PMinRoomArchive=Bepaald of MUC PMs worden opgeslagen in het Gespreksruimte Archief als onderdeel van Message Archiving (XEP-0313)
25
+
system_property.conversation.roomArchiving.PMinPersonalArchive=Bepaalt of MUC PMs worden opgeslagen in het Persoonlijk Archief als onderdeel van Message Archiving (XEP-0313)
26
+
system_property.conversation.roomArchiving.PMinRoomArchive=Bepaalt of MUC PMs worden opgeslagen in het Gespreksruimte Archief als onderdeel van Message Archiving (XEP-0313)
27
27
system_property.conversation.roomArchivingStanzas=Schakel het opslaan van volledige stanzas in voor MUC berichten
28
28
system_property.conversation.roomsArchived=Lijst van MUC ruimtes waar berichten voor worden gearchiveerd. Indien leeg, dan worden berichten van alle ruimtes gearchiveerd.
29
+
system_property.conversation.search.index-enabled=Bepaalt of de full-text zoekindex (Lucene) actief is.
29
30
system_property.conversation.search.updateInterval=Hoe vaak, in minuten, de zoekindex wordt bijgewerkt
30
31
system_property.monitoring.search.allow-unrecognized-fields=Als 'true' dan worden niet herkende zoekfilters genegeerd in plaats van beantwoord met een foutmelding.
31
32
system_property.stats.mock.viewer=Toon willekeurige statistieken in de administratiepagina's van de Monitoring plugin
thrownewDataRetrievalException("Unable to process a search request that contains a text-based query, as the full-text index functionality has been disabled by configuration.");
@@ -377,6 +381,9 @@ public Collection<ArchivedMessage> findMessages(Date startDate, Date endDate, JI
377
381
finalList<ArchivedMessage> nextPage;
378
382
if ( query != null && !query.isEmpty() )
379
383
{
384
+
if (!LuceneIndexer.ENABLED.getValue()) {
385
+
thrownewDataRetrievalException("Unable to process a search request that contains a text-based query, as the full-text index functionality has been disabled by configuration.");
@@ -80,6 +81,9 @@ public Collection<ArchivedMessage> findMessages(Date startDate, Date endDate, JI
80
81
finalList<ArchivedMessage> msgs;
81
82
finalinttotalCount;
82
83
if ( query != null && !query.isEmpty() ) {
84
+
if (!LuceneIndexer.ENABLED.getValue()) {
85
+
thrownewDataRetrievalException("Unable to process a search request that contains a text-based query, as the full-text index functionality has been disabled by configuration.");
86
+
}
83
87
// When there's a 'query' element, the search needs to go through a Lucene index (which takes care of text-search).
84
88
if (USE_OPENFIRE_TABLES.getValue()) {
85
89
Log.debug("Using Openfire tables");
@@ -165,6 +169,9 @@ public Collection<ArchivedMessage> findMessages(Date startDate, Date endDate, JI
165
169
finalList<ArchivedMessage> nextPage;
166
170
if ( query != null && !query.isEmpty() )
167
171
{
172
+
if (!LuceneIndexer.ENABLED.getValue()) {
173
+
thrownewDataRetrievalException("Unable to process a search request that contains a text-based query, as the full-text index functionality has been disabled by configuration.");
0 commit comments