[TYPO3-Solr] splitOnCaseChange in index on query

Jigal van Hemert jigal.van.hemert at typo3.org
Fri Jul 27 19:01:59 CEST 2012


Hi,

On 27-7-2012 15:43, Peter Niederlag wrote:
> Now I am puzzled on searches that use camelCase based Strings, for
> example like: 'StGB' or 'NatKautschOrgVorRV' (abbreviations)
>
> If the abbreviation is used as camelCase, without quotes, the results
> will contain any page that contains any part of the search string (for
> example an 'S'). It seems like the phrase is split and joined by 'or'.

This is done both when indexing and when processing the query. See 
schema.xml in <analyzer type="index"> :

<filter class="solr.WordDelimiterFilterFactory"
	generateWordParts="1"
	generateNumberParts="1"
	catenateWords="1"
	catenateNumbers="1"
	catenateAll="0"
	splitOnCaseChange="1"
	preserveOriginal="1"
/>

splitOnCaseChange causes "camelCase" to be split into "camel" and "case".

-- 
Jigal van Hemert
TYPO3 Core Team member

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-solr mailing list