ArchiveOrangemail archive

solr-user.lucene.apache.org


(List home) (Recent threads) (34 other Apache Lucene lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • High traffic list: 30+ messages per day
  • This list contains about 82,017 messages, beginning Jan 2006
  • 86 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

Why would solr norms come up different from Lucene norms?

Ad
Benson Margulies 1336138250Fri, 04 May 2012 13:30:50 +0000 (UTC)
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 1336262384Sat, 05 May 2012 23:59:44 +0000 (UTC)
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  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" />
Benson Margulies 1336267495Sun, 06 May 2012 01:24:55 +0000 (UTC)
On Sat, May 5, 2012 at 7:59 PM, Lance Norskog  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  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
> 
Home | About | Privacy