lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kumar <pavan2...@gmail.com>
Subject space between search terms
Date Fri, 18 Apr 2014 10:34:43 GMT
Hi,

I Have a field called "title". It is having a values called "indira nagar"
as well as "indiranagar".

If i type any of the keywords it has to display both results.

Can anybody help how can we do this?


I am using the title field in the following way:

<fieldType name="title" class="solr.TextField" positionIncrementGap="100">
			<analyzer type="index">
				<charFilter class="solr.MappingCharFilterFactory"
mapping="mapping-ISOLatin1Accent.txt" />
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.WordDelimiterFilterFactory" 
							generateWordParts="1" 
							generateNumberParts="1" 
							catenateWords="1" 
							catenateNumbers="1" 
							catenateAll="1" 
							splitOnCaseChange="1"
							splitOnNumerics="1" 
							preserveOriginal="1" />
				<filter class="solr.LowerCaseFilterFactory" />
				<filter class="solr.PatternReplaceFilterFactory"
pattern="([^\w\d\*æøåÆØÅ ])" replacement=" " replace="all" />
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true" />

			</analyzer>
			<analyzer type="query">
				<charFilter class="solr.MappingCharFilterFactory"
mapping="mapping-ISOLatin1Accent.txt" />
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.WordDelimiterFilterFactory" 
							generateWordParts="1" 
							generateNumberParts="1" 
							catenateWords="1" 
							catenateNumbers="1" 
							catenateAll="1" 
							splitOnCaseChange="1"
							splitOnNumerics="1" 
							preserveOriginal="1"/>
				<filter class="solr.LowerCaseFilterFactory" />
				<filter class="solr.PatternReplaceFilterFactory"
pattern="([^\w\d\*æøåÆØÅ ])" replacement=" " replace="all" />
				<filter class="solr.SynonymFilterFactory" ignoreCase="true"
synonyms="synonyms_tf.txt" expand="true" />
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true" />
				<filter class="solr.KeywordMarkerFilterFactory"
protected="protwords.txt" />
                <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
			</analyzer>
		</fieldType>



--
View this message in context: http://lucene.472066.n3.nabble.com/space-between-search-terms-tp4131967.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message