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 Benson Margulies <bi...@gmail.com> on 2012/05/04 15:30:22 UTC
Why would solr norms come up different from Lucene norms?
So, I've got some code that stores the same documents in a Lucene
3.5.0 index and a Solr 3.5.0 instance. It's only five documents.
For a particular field, the Solr norm is always 0.625, while the
Lucene norm is .5.
I've watched the code in NormsWriterPerField in both cases.
In Solr we've got .577, in naked Lucene it's .5.
I tried to check for boosts, and I don't see any non-1.0 document or
field boosts.
The Solr field is:
<field name="bt_rni_NameHRK_encodedName" type="text_ws" indexed="true"
stored="true" multiValued="false" />
Re: Why would solr norms come up different from Lucene norms?
Posted by Benson Margulies <bi...@gmail.com>.
On Sat, May 5, 2012 at 7:59 PM, Lance Norskog <go...@gmail.com> wrote:
> Which Similarity class do you use for the Lucene code? Solr has a custom one.
I am embarassed to report that I also have a custom similarity that I
didn't know about, and once I configured that into Solr all was well.
>
> On Fri, May 4, 2012 at 6:30 AM, Benson Margulies <bi...@gmail.com> wrote:
>> So, I've got some code that stores the same documents in a Lucene
>> 3.5.0 index and a Solr 3.5.0 instance. It's only five documents.
>>
>> For a particular field, the Solr norm is always 0.625, while the
>> Lucene norm is .5.
>>
>> I've watched the code in NormsWriterPerField in both cases.
>>
>> In Solr we've got .577, in naked Lucene it's .5.
>>
>> I tried to check for boosts, and I don't see any non-1.0 document or
>> field boosts.
>>
>> The Solr field is:
>>
>> <field name="bt_rni_NameHRK_encodedName" type="text_ws" indexed="true"
>> stored="true" multiValued="false" />
>
>
>
> --
> Lance Norskog
> goksron@gmail.com
Re: Why would solr norms come up different from Lucene norms?
Posted by Lance Norskog <go...@gmail.com>.
Which Similarity class do you use for the Lucene code? Solr has a custom one.
On Fri, May 4, 2012 at 6:30 AM, Benson Margulies <bi...@gmail.com> wrote:
> So, I've got some code that stores the same documents in a Lucene
> 3.5.0 index and a Solr 3.5.0 instance. It's only five documents.
>
> For a particular field, the Solr norm is always 0.625, while the
> Lucene norm is .5.
>
> I've watched the code in NormsWriterPerField in both cases.
>
> In Solr we've got .577, in naked Lucene it's .5.
>
> I tried to check for boosts, and I don't see any non-1.0 document or
> field boosts.
>
> The Solr field is:
>
> <field name="bt_rni_NameHRK_encodedName" type="text_ws" indexed="true"
> stored="true" multiValued="false" />
--
Lance Norskog
goksron@gmail.com