first commit

This commit is contained in:
Sven Wappler
2021-04-17 00:26:33 +02:00
commit 866c63cc63
813 changed files with 100696 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Ajaxify/setup.typoscript'

View File

@@ -0,0 +1,39 @@
# Ajaxify the results
tx_meilisearch_ajaxPage = PAGE
tx_meilisearch_ajaxPage {
typeNum = 7383
config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders.10.header = Content-type: text/plain
no_cache = 0
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = Solr
pluginName = pi_results
vendorName = ApacheSolrForTypo3
controller = Search
action = results
switchableControllerActions {
Search {
1 = results
2 = form
}
}
view < plugin.tx_meilisearch.view
persistence < plugin.tx_meilisearch.persistence
settings < plugin.tx_meilisearch.settings
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-uri = EXT:meilisearch/Resources/Public/JavaScript/JQuery/URI.min.js
solr-uri-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.URI.min.js
solr-ajaxify = EXT:meilisearch/Resources/Public/JavaScript/search_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/BoostQueries/setup.typoscript'

View File

@@ -0,0 +1,5 @@
plugin.tx_meilisearch.search.query.boostQuery {
lastYear = created:[NOW/DAY-1YEAR TO *]^5.0
oneYear = created:[NOW/DAY-2YEARS TO NOW/DAY-1YEAR]^3.0
twoYearsPlus = created:[NOW/DAY-5YEARS TO NOW/DAY-2YEARS]^2.0
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/ConnectionFromConfVars/setup.typoscript'

View File

@@ -0,0 +1,24 @@
plugin.tx_meilisearch {
solr {
scheme = TEXT
scheme {
value = {$plugin.tx_meilisearch.solr.scheme}
override.data = global:TYPO3_CONF_VARS|EXTCONF|solr|scheme
}
host = TEXT
host {
value = {$plugin.tx_meilisearch.solr.host}
override.data = global:TYPO3_CONF_VARS|EXTCONF|solr|host
}
port = TEXT
port {
value = {$plugin.tx_meilisearch.solr.port}
override.data = global:TYPO3_CONF_VARS|EXTCONF|solr|port
}
path = TEXT
path {
value = {$plugin.tx_meilisearch.solr.path}
override.data = global:TYPO3_CONF_VARS|EXTCONF|solr|path
}
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/EverythingOn/setup.typoscript'

View File

@@ -0,0 +1,56 @@
plugin.tx_meilisearch {
enableDebugMode = 1
search {
results {
resultsHighlighting = 1
siteHighlighting = 1
showDocumentScoreAnalysis = 1
}
spellchecking = 1
spellchecking {
searchUsingSpellCheckerSuggestion = 1
}
lastSearches = 1
frequentSearches = 1
sorting = 1
faceting = 1
variants = 1
}
statistics = 1
statistics.anonymizeIP = 1
suggest = 1
logging {
exceptions = 1
debugOutput = 1
indexing {
indexQueueInitialization = 1
missingTypo3SearchMarkers = 1
pageIndexed = 1
queue {
pages = 1
tt_news = 1
}
}
query {
filters = 1
searchWords = 1
queryString = 1
rawPost = 1
rawGet = 1
}
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/DateRange/setup.typoscript'

View File

@@ -0,0 +1,28 @@
# Enable a date range facet on created field
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
creationDateRange {
label = Created Between
field = created
type = dateRange
# these are the default values, you do not need to specify a dateRange configuration block if the defaults work for you
dateRange {
start = NOW/DAY-1YEAR
end = NOW/DAY+1YEAR
gap = +1DAY
}
}
}
# Load js files
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
solr-daterange = EXT:meilisearch/Resources/Public/JavaScript/facet_daterange_controller.js
}
page.includeCSS {
solr-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/Hierarchy/setup.typoscript'

View File

@@ -0,0 +1,23 @@
# Enable a hierarchy facet on the field "rootline"
lib.tx_meilisearch.pagetitle = HMENU
lib.tx_meilisearch.pagetitle {
special = list
special.value.current = 1
1 = TMENU
1 {
NO {
doNotLinkIt = 1
}
}
}
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
pageHierarchy {
field = rootline
label = Rootline
type = hierarchy
partialName = Rootline
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/NumericRange/setup.typoscript'

View File

@@ -0,0 +1,25 @@
# Enable a numericRange facet on the pidField
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
pidRangeRange {
field = pid
label = Pid Range
type = numericRange
numericRange {
start = 0
end = 100
gap = 1
}
}
}
# Load js files
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-ui = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery-ui.min.js
solr-numericrange = EXT:meilisearch/Resources/Public/JavaScript/facet_numericrange_controller.js
}
page.includeCSS {
solr-ui = EXT:meilisearch/Resources/Css/JQueryUi/jquery-ui.custom.css
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/Options/setup.typoscript'

View File

@@ -0,0 +1,12 @@
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
author {
label = Author
field = author
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsFiltered/setup.typoscript'

View File

@@ -0,0 +1,13 @@
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
typeFiltered {
label = Type Filtered
field = type
partialName = OptionsFiltered
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsPrefixGrouped/setup.typoscript'

View File

@@ -0,0 +1,13 @@
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
author {
label = Author
field = author
partialName = OptionsPrefixGrouped
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsSinglemode/setup.typoscript'

View File

@@ -0,0 +1,14 @@
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
typeToggle {
label = Type Singlemode
field = type
partialName = OptionsSinglemode
keepAllOptionsOnSelection = 1
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/OptionsToggle/setup.typoscript'

View File

@@ -0,0 +1,13 @@
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
typeToggle {
label = Type Toggle
field = type
partialName = OptionsToggle
}
}
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-options = EXT:meilisearch/Resources/Public/JavaScript/facet_options_controller.js
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Facets/QueryGroup/setup.typoscript'

View File

@@ -0,0 +1,56 @@
# Enable a queryGroup facet on the field "created"
plugin.tx_meilisearch.search.faceting = 1
plugin.tx_meilisearch.search.faceting.facets {
age {
label = Age
field = created
type = queryGroup
queryGroup {
week {
query = [NOW/DAY-7DAYS TO *]
}
month {
query = [NOW/DAY-1MONTH TO NOW/DAY-7DAYS]
}
halfYear {
query = [NOW/DAY-6MONTHS TO NOW/DAY-1MONTH]
}
year {
query = [NOW/DAY-1YEAR TO NOW/DAY-6MONTHS]
}
old {
query = [* TO NOW/DAY-1YEAR]
}
}
renderingInstruction = CASE
renderingInstruction {
key.field = optionValue
default = TEXT
default.field = optionValue
week = TEXT
week.value = Less than one week
month = TEXT
month.value = 1 week to 1 month :)
halfYear = TEXT
halfYear.value = 1 to 6 months
year = TEXT
year.value = 6 months to 1 year
old = TEXT
old.value = over a year
}
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/FilterPages/setup.typoscript'

View File

@@ -0,0 +1,7 @@
plugin.tx_meilisearch.search.query {
filter {
pagesOnlyFilter = type:pages
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/IndexQueueNews/setup.typoscript'

View File

@@ -0,0 +1,97 @@
plugin.tx_meilisearch.index.queue {
news = 1
news {
table = tx_news_domain_model_news
fields {
abstract = teaser
author = author
authorEmail_stringS = author_email
title = title
datetime_stringS = TEXT
datetime_stringS {
field = datetime
date = d.m.Y H:i
}
datetime_dateS = TEXT
datetime_dateS {
field = datetime
date = Y-m-d\TH:i:s\Z
}
content = SOLR_CONTENT
content {
cObject = COA
cObject {
10 = TEXT
10 {
field = bodytext
noTrimWrap = || |
}
}
}
category_stringM = SOLR_RELATION
category_stringM {
localField = categories
multiValue = 1
}
keywords = SOLR_MULTIVALUE
keywords {
field = keywords
}
tags_stringM = SOLR_RELATION
tags_stringM {
localField = tags
multiValue = 1
}
url = CASE
url {
key.field = type
# Internal
1 = TEXT
1 {
if.isTrue.field = internalurl
typolink.parameter.field = internalurl
typolink.useCacheHash = 1
typolink.returnLast = url
}
# External
2 = TEXT
2 {
if.isTrue.field = externalurl
field = externalurl
}
default = TEXT
default {
typolink.parameter = {$plugin.tx_news.settings.detailPid}
typolink.additionalParams = &tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&tx_news_pi1[news]={field:uid}&L={field:__solr_index_language}
typolink.additionalParams.insertData = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
}
}
attachments = 1
attachments {
fields = fal_related_files
fileExtensions = *
}
}
}
plugin.tx_meilisearch.logging.indexing.queue.news = 1

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/IndexQueueNewsContentElements/setup.typoscript'

View File

@@ -0,0 +1,17 @@
plugin.tx_meilisearch.index.queue {
news {
fields {
content {
cObject {
20 = SOLR_RELATION
20 {
localField = content_elements
foreignLabelField = bodytext
singleValueGlue = | |
}
}
}
}
}
}

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/IndexQueueTtNews/setup.typoscript'

View File

@@ -0,0 +1,67 @@
plugin.tx_meilisearch.index.queue {
tt_news = 1
tt_news {
fields {
abstract = short
author = author
description = short
title = title
datetime_stringS = TEXT
datetime_stringS {
value.field = datetime
value.date = d.m.Y H:i
}
content = SOLR_CONTENT
content {
field = bodytext
}
category_stringM = SOLR_RELATION
category_stringM {
localField = category
relationTableSortingField = sorting
multiValue = 1
}
categoryMain_stringS = TEXT
categoryMain_stringS {
cObject = SOLR_RELATION
cObject {
localField = category
relationTableSortingField = sorting
singleValueGlue = ,
}
split {
token = ,
returnKey = 0
}
}
keywords = SOLR_MULTIVALUE
keywords {
field = keywords
}
url = TEXT
url {
typolink.parameter = {$plugin.tt_news.singlePid}
typolink.additionalParams = &tx_ttnews[tt_news]={field:uid}&L={field:__solr_index_language}
typolink.additionalParams.insertData = 1
typolink.returnLast = url
typolink.useCacheHash = 1
}
}
attachments {
fields = bodytext,news_files
}
}
}
plugin.tx_meilisearch.logging.indexing.queue.tt_news = 0

View File

@@ -0,0 +1,2 @@
# Important: This file is deprecated and will removed with EXT:meilisearch 12.x
@import 'EXT:meilisearch/Configuration/TypoScript/Examples/Suggest/setup.typoscript'

View File

@@ -0,0 +1,48 @@
# Enable search field autocomplete/suggest
# Ajaxify the suggest/results
tx_meilisearch_suggest = PAGE
tx_meilisearch_suggest {
typeNum = 7384
config {
disableAllHeaderCode = 1
xhtml_cleaning = 0
admPanel = 0
additionalHeaders.10.header = Content-type: application/javascript
no_cache = 0
debug = 0
}
10 = USER
10 {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = Solr
pluginName = pi_suggest
vendorName = ApacheSolrForTypo3
controller = Suggest
action = suggest
}
}
[globalString = GP:tx_meilisearch|callback = ]
tx_meilisearch_suggest.config.additionalHeaders.10.header = Content-type: application/json
[global]
# Enable suggest
plugin.tx_meilisearch {
suggest = 1
suggest {
numberOfSuggestions = 10
suggestField = spell
}
}
# Load js files
page.includeJSFooterlibs {
solr-jquery = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.min.js
solr-autocomplete = EXT:meilisearch/Resources/Public/JavaScript/JQuery/jquery.autocomplete.min.js
solr-suggest = EXT:meilisearch/Resources/Public/JavaScript/suggest_controller.js
}
page.includeCSS {
solr-suggest = EXT:meilisearch/Resources/Public/StyleSheets/Frontend/suggest.css
}