first commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace meilisearch=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace core=TYPO3\CMS\Core\ViewHelpers}
|
||||
|
||||
<f:layout name="Backend/WithPageTree"/>
|
||||
|
@@ -1,13 +1,13 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace meilisearch=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
<f:layout name="Backend/WithPageTree"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<f:be.pageRenderer includeRequireJsModules="{0:'TYPO3/CMS/Solr/FormModal'}"/>
|
||||
<f:be.pageRenderer includeRequireJsModules="{0:'TYPO3/CMS/Meilisearch/FormModal'}"/>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<h1>{f:translate(key: 'solr.backend.index_administration.label', default: 'Index Administration')}</h1>
|
||||
<p class="lead"><f:translate key="solr.backend.index_administration.description" /></p>
|
||||
<h1>{f:translate(key: 'meilisearch.backend.index_administration.label', default: 'Index Administration')}</h1>
|
||||
<p class="lead"><f:translate key="meilisearch.backend.index_administration.description" /></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
</div>
|
||||
<div class="col-xs-9 action-description">
|
||||
<p>
|
||||
A core in Solr is what holds your index. When changing core/index configuration
|
||||
A core in Meilisearch is what holds your index. When changing core/index configuration
|
||||
such as synonyms, stop words, or protected words you need to reload the core
|
||||
to make the changes become active. To reload configuration you can either restart
|
||||
the whole Solr server or simply reload a specific core.
|
||||
the whole Meilisearch server or simply reload a specific core.
|
||||
Here you can reload the site's cores/indexes.
|
||||
</p>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="col-xs-3">
|
||||
<f:form action="emptyIndex" method="POST">
|
||||
<f:form.submit class="btn btn-sm btn-default btn-danger t3js-modal-formsubmit-trigger"
|
||||
data="{title: 'Please confirm', content: 'Are you sure you want to clear the index? All Solr documents will be removed.', severity: 'warning'}"
|
||||
data="{title: 'Please confirm', content: 'Are you sure you want to clear the index? All Meilisearch documents will be removed.', severity: 'warning'}"
|
||||
value="Empty Index"/>
|
||||
|
||||
</f:form>
|
||||
@@ -50,14 +50,14 @@
|
||||
</div>
|
||||
|
||||
<h3>
|
||||
<f:translate key="solr.backend.index_queue_module.button.clear_index_queue"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.button.clear_index_queue"/>
|
||||
</h3>
|
||||
<div class="row">
|
||||
<div class="col-xs-3">
|
||||
<f:form action="clearIndexQueue" method="POST">
|
||||
<f:form.submit class="btn btn-sm btn-default btn-danger t3js-modal-formsubmit-trigger"
|
||||
data="{title: 'Please confirm', content: 'Are you sure you want to clear the Index Queue?', severity: 'warning'}"
|
||||
value="{f:translate(key:'solr.backend.index_queue_module.button.clear_index_queue')}"/>
|
||||
value="{f:translate(key:'meilisearch.backend.index_queue_module.button.clear_index_queue')}"/>
|
||||
</f:form>
|
||||
</div>
|
||||
<div class="col-xs-9 action-description">
|
||||
|
@@ -1,11 +1,11 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace meilisearch=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
<f:layout name="Backend/WithPageTree"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<f:be.pageRenderer includeCssFiles="{0: '{f:uri.resource(path:\'StyleSheets/Backend/IndexQueueModule.css\')}'}" includeRequireJsModules="{0:'TYPO3/CMS/Solr/FormModal'}"/>
|
||||
<f:be.pageRenderer includeCssFiles="{0: '{f:uri.resource(path:\'StyleSheets/Backend/IndexQueueModule.css\')}'}" includeRequireJsModules="{0:'TYPO3/CMS/Meilisearch/FormModal'}"/>
|
||||
|
||||
<h1>Index Queue</h1>
|
||||
<p class="lead"><f:translate key="solr.backend.index_queue_module.description" /></p>
|
||||
<p class="lead"><f:translate key="meilisearch.backend.index_queue_module.description" /></p>
|
||||
|
||||
<hr class="section-divider" />
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="row section-with-header">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.index_queue_module.header_status"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.header_status"/>
|
||||
</h2>
|
||||
|
||||
<div class="row">
|
||||
@@ -22,34 +22,34 @@
|
||||
<f:if condition="{indexqueue_statistics.successCount} > 0">
|
||||
<div class="progress-bar progress-bar-success"
|
||||
style="width: {indexqueue_statistics.successPercentage}%"
|
||||
title="{f:translate(key:'solr.backend.index_queue_module.status.indexed')}: {indexqueue_statistics.successCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.successPercentage}%)">
|
||||
title="{f:translate(key:'meilisearch.backend.index_queue_module.status.indexed')}: {indexqueue_statistics.successCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.successPercentage}%)">
|
||||
|
||||
<f:translate key="solr.backend.index_queue_module.status.indexed"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.status.indexed"/>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{indexqueue_statistics.pendingCount} > 0">
|
||||
<div class="progress-bar progress-bar-warning"
|
||||
style="width: {indexqueue_statistics.pendingPercentage}%"
|
||||
title="{f:translate(key:'solr.backend.index_queue_module.status.pending')}: {indexqueue_statistics.pendingCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.pendingPercentage}%)">
|
||||
title="{f:translate(key:'meilisearch.backend.index_queue_module.status.pending')}: {indexqueue_statistics.pendingCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.pendingPercentage}%)">
|
||||
|
||||
<f:translate key="solr.backend.index_queue_module.status.pending"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.status.pending"/>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{indexqueue_statistics.failedCount} > 0">
|
||||
<div class="progress-bar progress-bar-danger"
|
||||
style="width: {indexqueue_statistics.failedPercentage}%"
|
||||
title="{f:translate(key:'solr.backend.index_queue_module.status.errors')}: {indexqueue_statistics.failedCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.failedPercentage}%)">
|
||||
title="{f:translate(key:'meilisearch.backend.index_queue_module.status.errors')}: {indexqueue_statistics.failedCount}/{indexqueue_statistics.totalCount} ({indexqueue_statistics.failedPercentage}%)">
|
||||
|
||||
<f:translate key="solr.backend.index_queue_module.status.errors"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.status.errors"/>
|
||||
</div>
|
||||
</f:if>
|
||||
|
||||
</div>
|
||||
<f:form action="doIndexingRun" method="POST">
|
||||
<f:form.submit class="btn btn-sm btn-default"
|
||||
value="{f:translate(key:'solr.backend.index_queue_module.index_now')}"/>
|
||||
value="{f:translate(key:'meilisearch.backend.index_queue_module.index_now')}"/>
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -59,19 +59,19 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.index_queue_module.errors.headline"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.errors.headline"/>
|
||||
</h2>
|
||||
|
||||
<table class="table table-condensed table-hover table-striped">
|
||||
<tr>
|
||||
<th>
|
||||
<f:translate key="solr.backend.index_queue_module.errors.id"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.errors.id"/>
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.index_queue_module.errors.item_type"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.errors.item_type"/>
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.index_queue_module.errors.item_uid"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.errors.item_uid"/>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -83,7 +83,7 @@
|
||||
<td>{item.item_uid}</td>
|
||||
<td>
|
||||
<f:link.action action="showError" arguments="{indexQueueItemId: item.uid}">
|
||||
<f:translate key="solr.backend.index_queue_module.errors.show_button"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.errors.show_button"/>
|
||||
</f:link.action>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
<f:form action="resetLogErrors" method="POST">
|
||||
<f:form.submit class="btn btn-sm btn-default"
|
||||
value="{f:translate(key:'solr.backend.index_queue_module.errors.reset_button')}"/>
|
||||
value="{f:translate(key:'meilisearch.backend.index_queue_module.errors.reset_button')}"/>
|
||||
</f:form>
|
||||
|
||||
</div>
|
||||
@@ -107,7 +107,7 @@
|
||||
<div class="row section-with-header">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.index_queue_module.header_init" />
|
||||
<f:translate key="meilisearch.backend.index_queue_module.header_init" />
|
||||
</h2>
|
||||
|
||||
<f:form name="editform" action="initializeIndexQueue">
|
||||
@@ -116,13 +116,13 @@
|
||||
<f:format.raw>{indexQueueInitializationSelector}</f:format.raw>
|
||||
</div>
|
||||
<f:form.submit name="initializeIndexQueue" value="Queue Selected Content for Indexing" class="btn btn-sm btn-default"/>
|
||||
<solr:backend.button.helpButton title="Index Queue Initialization" description="{f:translate(key:'solr.backend.index_queue_module.help')}" />
|
||||
<meilisearch:backend.button.helpButton title="Index Queue Initialization" description="{f:translate(key:'meilisearch.backend.index_queue_module.help')}" />
|
||||
</f:form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<f:comment><!-- Show this button only if module indexadministration is allowed for be user/group --></f:comment>
|
||||
<solr:backend.security.ifHasAccessToModule extension="Solr" main="searchbackend" sub="indexadministration">
|
||||
<meilisearch:backend.security.ifHasAccessToModule extension="Meilisearch" main="searchbackend" sub="indexadministration">
|
||||
<f:then>
|
||||
<hr class="section-divider" />
|
||||
|
||||
@@ -130,16 +130,16 @@
|
||||
<div class="col-md-3">
|
||||
|
||||
<f:form addQueryString="1"
|
||||
additionalParams="{route: '/searchbackend/SolrIndexadministration/', tx_meilisearch_searchbackend_solrindexadministration:{controller: 'Backend\\Search\\IndexAdministrationModule', action: 'clearIndexQueue', id: '{pageUID}', fromQueue: 'true'}}">
|
||||
additionalParams="{route: '/searchbackend/MeilisearchIndexadministration/', tx_meilisearch_searchbackend_meilisearchindexadministration:{controller: 'Backend\\Search\\IndexAdministrationModule', action: 'clearIndexQueue', id: '{pageUID}', fromQueue: 'true'}}">
|
||||
<f:form.submit class="btn btn-sm btn-default btn-danger t3js-modal-formsubmit-trigger"
|
||||
data="{title: 'Please confirm', content: 'Are you sure you want to clear the Index Queue?', severity: 'warning'}"
|
||||
value="{f:translate(key:'solr.backend.index_queue_module.button.clear_index_queue')}"/>
|
||||
value="{f:translate(key:'meilisearch.backend.index_queue_module.button.clear_index_queue')}"/>
|
||||
</f:form>
|
||||
|
||||
</div>
|
||||
<div class="col-md-9 action-description">
|
||||
<h3>
|
||||
<f:translate key="solr.backend.index_queue_module.button.clear_index_queue"/>
|
||||
<f:translate key="meilisearch.backend.index_queue_module.button.clear_index_queue"/>
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
@@ -150,5 +150,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</f:then>
|
||||
</solr:backend.security.ifHasAccessToModule>
|
||||
</meilisearch:backend.security.ifHasAccessToModule>
|
||||
</f:section>
|
||||
|
@@ -3,11 +3,11 @@
|
||||
data-namespace-typo3-fluid="true">
|
||||
|
||||
<f:if condition="{indexQueueItem.errors}">
|
||||
<h1><f:translate key="solr.backend.index_queue_module.error_details"/> (uid: <code>{indexQueueItem.indexQueueUid}</code>, type: <code>{indexQueueItem.type}</code>):</h1>
|
||||
<h1><f:translate key="meilisearch.backend.index_queue_module.error_details"/> (uid: <code>{indexQueueItem.indexQueueUid}</code>, type: <code>{indexQueueItem.type}</code>):</h1>
|
||||
<pre class="alert alert-danger">{indexQueueItem.errors}</pre>
|
||||
|
||||
<f:link.action class="btn btn-default">
|
||||
{core:icon(identifier:'actions-view-go-back')} <f:translate key="solr.backend.index_queue_module.back"/>
|
||||
{core:icon(identifier:'actions-view-go-back')} <f:translate key="meilisearch.backend.index_queue_module.back"/>
|
||||
</f:link.action>
|
||||
</f:if>
|
||||
</html>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace meilisearch=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
<f:layout name="Backend/WithPageTree"/>
|
||||
|
||||
<f:section name="Main">
|
||||
<f:for each="{documents}" as="document">
|
||||
<f:render partial="Backend/ApacheSolr/SingleDocument" arguments="{document: document, documentType: documentType, documentsCount: '{f:count(subject: documents)}'}"/>
|
||||
<f:render partial="Backend/ApacheMeilisearch/SingleDocument" arguments="{document: document, documentType: documentType, documentsCount: '{f:count(subject: documents)}'}"/>
|
||||
</f:for>
|
||||
</f:section>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{namespace solr=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
{namespace meilisearch=WapplerSystems\Meilisearch\ViewHelpers}
|
||||
<f:layout name="Backend/WithPageTree"/>
|
||||
|
||||
<f:section name="Main">
|
||||
@@ -64,7 +64,7 @@
|
||||
<h2>Site: {site.label}</h2>
|
||||
|
||||
<f:if condition="{connectedHosts}">
|
||||
<f:be.infobox title="Following Apache Solr servers have been contacted:" state="0">
|
||||
<f:be.infobox title="Following Meilisearch servers have been contacted:" state="0">
|
||||
<ul>
|
||||
<f:for each="{connectedHosts}" as="connectedHost">
|
||||
<li>{connectedHost}</li>
|
||||
@@ -74,7 +74,7 @@
|
||||
</f:if>
|
||||
|
||||
<f:if condition="{missingHosts}">
|
||||
<f:be.infobox title="Unable to contact following Apache Solr servers:" state="2">
|
||||
<f:be.infobox title="Unable to contact following Meilisearch servers:" state="2">
|
||||
<ul>
|
||||
<f:for each="{missingHosts}" as="missingHost">
|
||||
<li>{missingHost}</li>
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<hr class="double" />
|
||||
|
||||
No solr server running? You can use <strong><a href="http://www.hosted-solr.com/" target="_blank">hosted-solr.com</a></strong> to setup a solr core with just a few clicks.
|
||||
No meilisearch server running? You can use <strong><a href="http://www.hosted-meilisearch.com/" target="_blank">hosted-meilisearch.com</a></strong> to setup a meilisearch core with just a few clicks.
|
||||
</f:section>
|
||||
|
||||
<f:section name="Statistics">
|
||||
@@ -129,7 +129,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.search_statistics_module.top_search_phrases"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.top_search_phrases"/>
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
@@ -149,7 +149,7 @@
|
||||
<div class="row section-with-header">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.search_statistics_module.top_search_phrases_without_hits"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.top_search_phrases_without_hits"/>
|
||||
</h2>
|
||||
|
||||
<ul>
|
||||
@@ -168,7 +168,7 @@
|
||||
<div class="row section-with-header">
|
||||
<div class="col-md-12">
|
||||
<h2>
|
||||
<f:translate key="solr.backend.search_statistics_module.search_phrases_header"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.search_phrases_header"/>
|
||||
</h2>
|
||||
|
||||
<f:if condition="{search_phrases_statistics}">
|
||||
@@ -178,16 +178,16 @@
|
||||
<tr class="t3-row-header">
|
||||
<th class="nowrap"> </th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.search_statistics_module.item_phrase"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.item_phrase"/>
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.search_statistics_module.item_count"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.item_count"/>
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.search_statistics_module.results"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.results"/>
|
||||
</th>
|
||||
<th>
|
||||
<f:translate key="solr.backend.search_statistics_module.percentage"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.percentage"/>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -206,7 +206,7 @@
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:be.infobox state="2">
|
||||
<f:translate key="solr.backend.search_statistics_module.no_records_found"/>
|
||||
<f:translate key="meilisearch.backend.search_statistics_module.no_records_found"/>
|
||||
</f:be.infobox>
|
||||
</f:else>
|
||||
</f:if>
|
||||
@@ -232,7 +232,7 @@
|
||||
</div>
|
||||
<div id="collapse-core{iterator.index}" class="panel-collapse collapse {f:if(condition: '{iterator.isFirst}', then: 'in')}">
|
||||
<div class="panel-body">
|
||||
<f:render partial="Backend/ApacheSolr/FieldTypesForSingleCore" arguments="{indexFieldsInfoForCore: indexFieldsInfoForCore}"/>
|
||||
<f:render partial="Backend/ApacheMeilisearch/FieldTypesForSingleCore" arguments="{indexFieldsInfoForCore: indexFieldsInfoForCore}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -309,18 +309,18 @@
|
||||
<f:comment>
|
||||
<!-- The additionalPrams M:'...' can be removed whe TYPO3 8 support will be dropped. -->
|
||||
</f:comment>
|
||||
<solr:backend.security.ifHasAccessToModule extension="Solr" main="searchbackend" sub="indexqueue">
|
||||
<meilisearch:backend.security.ifHasAccessToModule extension="Meilisearch" main="searchbackend" sub="indexqueue">
|
||||
<span class="btn btn-default">
|
||||
|
||||
<f:link.action action="requeueDocument" arguments="{uid: document.uid, type: document.type}"
|
||||
controller="Backend\Search\IndexQueueModule"
|
||||
pluginName="searchbackend_SolrIndexqueue"
|
||||
additionalParams="{M:'searchbackend_SolrIndexqueue',route: 'searchbackend_SolrIndexqueue'}" title="ReQueue for all languages">
|
||||
pluginName="searchbackend_MeilisearchIndexqueue"
|
||||
additionalParams="{M:'searchbackend_MeilisearchIndexqueue',route: 'searchbackend_MeilisearchIndexqueue'}" title="ReQueue for all languages">
|
||||
<core:icon identifier="actions-refresh" />
|
||||
</f:link.action>
|
||||
|
||||
</span>
|
||||
</solr:backend.security.ifHasAccessToModule>
|
||||
</meilisearch:backend.security.ifHasAccessToModule>
|
||||
</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
|
Reference in New Issue
Block a user