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 YOGENDRA SONI <so...@gmail.com> on 2020/09/02 07:29:59 UTC

Does change in similarity class needs reindexing

Hi all,
I am experimenting with different parameters of BM25 and Sweetspot
similarity.
I changed solr field type definition  like given below.
I need clarification that changing similarity in field type need reidexing
or not.
{"replace-field-type":{
"name":"content_text",
"class":"solr.TextField",
"positionIncrementGap":"100",
"similarity":{"class":"solr.SweetSpotSimilarityFactory",
"min":3000,
"max":4000,
"steepness":0.5},
..
..
..

Fwd: Does change in similarity class needs reindexing

Posted by YOGENDRA SONI <so...@gmail.com>.
I changed attributes  reloaded the collection but scores are not changing
also (norm(content_text)) is not changing.

i did reindexing of documents but  scores are not changing.
steps i followed.
1 Created fields using default similarity.

created content_text field type without similarity section.
created content field with type: content_text.
2. changed field type definition to add similarity
"similarity":{"class":"solr.SweetSpotSimilarityFactory",
"min":100,
"max":2000,
"steepness":0.5}
 then. indexed documents

3. ran query *content:wireless *and save scores.


4. changed field type definition to change min and max in similarity.

{"replace-field-type":{
"name":"content_text",
"class":"solr.TextField",
"positionIncrementGap":"100",
"similarity":{"class":"solr.SweetSpotSimilarityFactory",
"min":3000,
"max":4000,
"steepness":0.5},
..
..
..

5. RELOADed the collection and ran same query to see the change in ranking
and scores.
It is not changed.

6. Reindexed the documents results are not changed,