lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "easy.angel" <oi.is.t...@gmail.com>
Subject Re: How to force wildcard query not to ignore word endings
Date Thu, 01 Jul 2010 16:24:39 GMT

I have standard configuration for the text field type:

<fieldType name="text" class="solr.TextField" positionIncrementGap="100">
	<analyzer type="index">
		<tokenizer class="solr.WhitespaceTokenizerFactory" />

		<filter class="solr.StopFilterFactory"
				ignoreCase="true"
				words="stopwords.txt"
				enablePositionIncrements="true" />

		<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1"
				catenateWords="1" catenateNumbers="1" catenateAll="0"
splitOnCaseChange="1" />
		<filter class="solr.LowerCaseFilterFactory" />
		<filter class="solr.SnowballPorterFilterFactory" language="English"
protected="protwords.txt" />
	</analyzer>
	<analyzer type="query">
		<tokenizer class="solr.WhitespaceTokenizerFactory" />

		<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true" />
		<filter class="solr.StopFilterFactory"
				ignoreCase="true"
				words="stopwords.txt"
				enablePositionIncrements="true"
				/>
		<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1"
				catenateWords="0" catenateNumbers="0" catenateAll="0"
splitOnCaseChange="1" />
		<filter class="solr.LowerCaseFilterFactory" />
		<filter class="solr.SnowballPorterFilterFactory" language="English"
protected="protwords.txt" />
	</analyzer>
</fieldType>

I will try to remove SnowballPorterFilterFactory (is it right?) and then
restart solr + reindex 
-- 
View this message in context: http://lucene.472066.n3.nabble.com/How-to-force-wildcard-query-not-to-ignore-word-endings-tp936322p936584.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message