You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by nettadalet <ns...@dalet.com> on 2021/01/04 14:54:35 UTC

Re: Why do I get different results for the same query with two Solr versions?

Tulsi wrote
> Can you post the managed schema and solrconfig content here ?

Schema for the 4.6 index (I omitted all non-relevant data):
<schema name="ItemCodeIndex46_0_English" version="1.3">
	<types>
		<fieldType name="textgen-ai" class="solr.TextField"
positionIncrementGap="1000">
			<analyzer type="index">
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.ASCIIFoldingFilterFactory"/>
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
				<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="1" catenateNumbers="1"
catenateAll="0" splitOnCaseChange="0"/>
				<filter class="solr.LowerCaseFilterFactory"/>
			</analyzer>
			<analyzer type="query">
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.ASCIIFoldingFilterFactory"/>
				<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
				<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1"
generateNumberParts="1" catenateWords="0" catenateNumbers="0"
catenateAll="0" splitOnCaseChange="0"/>
				<filter class="solr.LowerCaseFilterFactory"/>
			</analyzer>
		</fieldType>
	</types>
	<fields>
		<field name="TITLE_ItemCode_t" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="true"
termPositions="true"/>
		<field name="TITLE_ItemCode_s" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="false"
termPositions="false"/>
		<field name="TITLE_ItemCode_u" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="true"
termPositions="true"/>
	</fields>
	<copyField source="TITLE_ItemCode_u" dest="TITLE_ItemCode_t"/>
	<copyField source="TITLE_ItemCode_u" dest="TITLE_ItemCode_s"/>
	<solrQueryParser defaultOperator="AND"/>
</schema>

Schema for the 7.5 index (I omitted all non-relevant data):
<schema name="ItemCodeIndex75_4_English" version="1.6">
	<types>
		<fieldType name="textgen-ai" class="solr.TextField"
positionIncrementGap="1000">
			<analyzer type="index">
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.ASCIIFoldingFilterFactory"/>
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
				<filter class="solr.WordDelimiterGraphFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="1"
catenateNumbers="1" catenateAll="1" splitOnCaseChange="0"/>
				<filter class="solr.FlattenGraphFilterFactory"/>
				<filter class="solr.LowerCaseFilterFactory"/>
			</analyzer>
			<analyzer type="query">
				<tokenizer class="solr.WhitespaceTokenizerFactory"/>
				<filter class="solr.ASCIIFoldingFilterFactory"/>
				<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"
ignoreCase="true" expand="true"/>
				<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt"/>
				<filter class="solr.WordDelimiterGraphFilterFactory"
generateWordParts="1" generateNumberParts="1" catenateWords="0"
catenateNumbers="0" catenateAll="1" splitOnCaseChange="0"/>
				<filter class="solr.LowerCaseFilterFactory"/>
			</analyzer>
		</fieldType>
	</types>
	<fields>
		<field name="TITLE_ItemCode_t" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="true"
termPositions="true"/>
		<field name="TITLE_ItemCode_s" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="false"
termPositions="false"/>
		<field name="TITLE_ItemCode_u" type="textgen-ai" indexed="true"
stored="true" omitNorms="false" multiValued="false" termVectors="true"
termPositions="true"/>
	</fields>
	<copyField source="TITLE_ItemCode_u" dest="TITLE_ItemCode_t"/>
	<copyField source="TITLE_ItemCode_u" dest="TITLE_ItemCode_s"/>
</schema>

About the solrconfig.xml file - I don't think I can share it because it may
contain sensitive information. Is there something specific from this file
that may be relevant for our discussion?


Tulsi wrote
> Do try the solr admin analysis screen
> once as well to see the behaviour for this field.
> https://lucene.apache.org/solr/guide/7_6/index.html

I looked at the analysis screen, but it wasn't helpful. That's why I started
using the "debug=query" parameter and the content of parsedquery.



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html