[TYPO3-Solr] TYPO3-project-solr - Localized System Categories as Facet / Filter

Stefan Kraus s.kraus at 21torr.com
Thu Nov 23 15:38:23 CET 2017


Hi List!

I need your Help!

Before i go on searching for this. Is it possible to use LOCALIZED TYPO3 System Categories for Facetting art all?

And if, what have to be configured in which way. Language Fallback, TCA of sys_categories, Solr Index Config etc... 


With only Default Language it it works as expected. 

But for sys_language_uid=1 in the english core not even the category_stringM is inserted in the Index... 

All Pages, Sysfolders and Categories are localized correctly, but the Configuration is completely ignored indexing to the english core.


Another odd thing is, that after Indexing for each Facet both the German Facet Link with Label and the English Facet Link without the Label is shown in Facet List in the German Search Form.

So both German and English Factes are indexed to the German Core!

In the English Form no Facets are displayed at all.

Any Thoughts?


Here is my current Configuration

Indexing:
plugin.tx_solr.index.queue {
	pages {
		fields {
			category_stringM = SOLR_RELATION
			category_stringM {
        				localField = categories
        				foreignLabelField = uid
        				multiValue = 1
				additionalWhereClause = uid > 7
			}
		}
	}
}

Field Processing:
plugin.tx_solr.index {
	fieldProcessingInstructions {
		category_stringM = categoryUidToHierarchy
	}
}

Outputing:
plugin.tx_solr.search {
	faceting = 1
		faceting {
			keepAllFacetsOnSelection = 1
			showEmptyFacets = 1
			facets {
				category_stringM {
					selectingSelectedFacetOptionRemovesFilter = 0
					keepAllOptionsOnSelection = 1
					singleOptionMode = 1
					label = Categories
					field = category_stringM
					type = hierarchy
					hierarchy = HMENU
					hierarchy {
						1 = TMENU
						1 {
							NO = 1
							NO {
								wrapItemAndSub = <li>|</li>
								stdWrap.cObject = RECORDS
								stdWrap.cObject {
									source.field = facetKey
									tables = sys_category
									dontCheckPid = 1
									conf.sys_category = TEXT
									conf.sys_category.field = title
									conf.sys_category.htmlSpecialChars = 1
								}
								stdWrap.dataWrap = |&nbsp;<span class="facetoption-result-count">({field:numberOfResults})</span>
							}
							CUR = 1
							CUR < .NO
							CUR.wrapItemAndSub = <li class="current">|</li>

							ACT = 1
							ACT < .NO
							ACT.wrapItemAndSub = <li class="active">|</li>
						}

						2 < .1
						2.wrap = <ul style="position: relative; margin-left: 10px;">|</ul>

						3 < .2
					}
			    }
		    }
		}
	}
}

-----Ursprüngliche Nachricht-----
Von: typo3-project-solr-request at lists.typo3.org [mailto:typo3-project-solr-request at lists.typo3.org] 
Gesendet: Freitag, 27. Oktober 2017 12:00
An: typo3-project-solr at lists.typo3.org
Betreff: TYPO3-project-solr Digest, Vol 94, Issue 2

Send TYPO3-project-solr mailing list submissions to
	typo3-project-solr at lists.typo3.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr
or, via email, send a message with subject or body 'help' to
	typo3-project-solr-request at lists.typo3.org

You can reach the person managing the list at
	typo3-project-solr-owner at lists.typo3.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of TYPO3-project-solr digest..."


Today's Topics:

   1. Re: Search-Form Action Sheme (Olivier Dobberkau)
   2. Re: Search-Form Action Sheme (Andreas Thurnheer-Meier)
   3. Re: Search-Form Action Sheme (Olivier Dobberkau)
   4. Re: Search-Form Action Sheme (Andreas Thurnheer-Meier)


----------------------------------------------------------------------

Message: 1
Date: Thu, 26 Oct 2017 16:43:33 +0200
From: Olivier Dobberkau <olivier.dobberkau at dkd.de>
Subject: Re: [TYPO3-Solr] Search-Form Action Sheme
To: typo3-project-solr at lists.typo3.org
Message-ID:
	<mailman.1.1509029015.10534.typo3-project-solr at lists.typo3.org>
Content-Type: text/plain; charset=utf-8; format=flowed

On 26.10.17 11:48, Andreas Thurnheer-Meier wrote:

> - config.absRefPrefix?=https://domain.tld

does absRefPrefix = auto change the behaviour for you?

Olivier


------------------------------

Message: 2
Date: Thu, 26 Oct 2017 16:57:47 +0200
From: Andreas Thurnheer-Meier <andreas at iresults.li>
Subject: Re: [TYPO3-Solr] Search-Form Action Sheme
To: Apache Solr search for TYPO3 project
	<typo3-project-solr at lists.typo3.org>
Message-ID:
	<mailman.59214.1509029884.600.typo3-project-solr at lists.typo3.org>
Content-Type: text/plain; charset="utf-8"

Thank you for your answer.

It seems to be a general problem with absRefPrefix / Domain-Record not necessarily SOLR-specific.

Once a domain record is created, the domain of this record is prepended to all generated links with http:// (action URL, menu, etc.), and absRefPrefix is totally ignored. Regardless of whether:

config.absRefPrefix = https: //domain.tld config.absRefPrefix = / config.absRefPrefix = auto

If I disable the domain record, the links are generated correctly.

The option "Always prepend this domain in links:? in the domain record is disabled. I also double checked this in the database.

Andreas
Am 26. Oktober 2017 um 16:45:05, Olivier Dobberkau (olivier.dobberkau at dkd.de) schrieb:

On 26.10.17 11:48, Andreas Thurnheer-Meier wrote:

> - config.absRefPrefix?=https://domain.tld

does absRefPrefix = auto change the behaviour for you?

Olivier
_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr

------------------------------

Message: 3
Date: Thu, 26 Oct 2017 20:03:36 +0200
From: Olivier Dobberkau <olivier.dobberkau at dkd.de>
Subject: Re: [TYPO3-Solr] Search-Form Action Sheme
To: typo3-project-solr at lists.typo3.org
Message-ID:
	<mailman.1.1509041017.10291.typo3-project-solr at lists.typo3.org>
Content-Type: text/plain; charset=utf-8; format=flowed

On 26.10.17 16:57, Andreas Thurnheer-Meier wrote:

> If I disable the domain record, the links are generated correctly.

i am not sure if you have seen that we got rid of the dependency to sys_domain record

By now EXT:solr had the dependency on an existing domain record. This can be a problem, when you domain is dynamic or you need to be able to generate it.

Now you can configure a domain by the rootPageId in the TYPO3_CONF_VARS, the domain record is still used, when nothing is configured here.

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['sites'][###rootPageId###]['domains']
= ['mydomain.com'];


See:

https://github.com/TYPO3-Solr/ext-solr/releases/tag/7.0.0

Greetings,

Olivier


------------------------------

Message: 4
Date: Thu, 26 Oct 2017 20:43:58 +0200
From: Andreas Thurnheer-Meier <andreas at iresults.li>
Subject: Re: [TYPO3-Solr] Search-Form Action Sheme
To: Apache Solr search for TYPO3 project
	<typo3-project-solr at lists.typo3.org>
Message-ID:
	<mailman.59233.1509043457.600.typo3-project-solr at lists.typo3.org>
Content-Type: text/plain; charset="utf-8"

Thank you for your suggested solution. Got to know for future use.

I found the solution for the problem in the mean time. In need to set:

config.typolinkEnableLinksAcrossDomains = 0 (was 1)

Andreas
Am 26. Oktober 2017 um 20:05:04, Olivier Dobberkau (olivier.dobberkau at dkd.de) schrieb:

On 26.10.17 16:57, Andreas Thurnheer-Meier wrote: 

> If I disable the domain record, the links are generated correctly. 

i am not sure if you have seen that we got rid of the dependency to 
sys_domain record 

By now EXT:solr had the dependency on an existing domain record. This 
can be a problem, when you domain is dynamic or 
you need to be able to generate it. 

Now you can configure a domain by the rootPageId in the TYPO3_CONF_VARS, 
the domain record is still used, when nothing is configured here. 

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['sites'][###rootPageId###]['domains'] 
= ['mydomain.com']; 


See: 

https://github.com/TYPO3-Solr/ext-solr/releases/tag/7.0.0 

Greetings, 

Olivier 
_______________________________________________ 
TYPO3-project-solr mailing list 
TYPO3-project-solr at lists.typo3.org 
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr 


------------------------------

_______________________________________________
TYPO3-project-solr mailing list
TYPO3-project-solr at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr

End of TYPO3-project-solr Digest, Vol 94, Issue 2
*************************************************


More information about the TYPO3-project-solr mailing list