SolrSharp boost - int vs. float

2007-07-05 Thread Otis Gospodnetic
Hi,



Here is a quick one for Jeff R. about his SolrSharp client.  Looking at 

http://solrstuff.org/svn/solrsharp/src/Query/Parameters/QueryParameter.cs , I 
see boost defined as an int(eger):


private int _boost = 1;



Lucene's boosts are floats (see 
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/Query.html#getBoost()
 )



Is there a reason boosts are ints in SolrSharp?



Thanks,

Otis






Re: SolrSharp boost - int vs. float

2007-07-05 Thread Jeff Rodenburg

Nope, other than just oversight.

I just modified the QueryParameter class to change the _boost and Boost
variable  property to type float, and all works well.  I'll log an issue in
JIRA and update the source.

thanks otis,
jeff


On 7/5/07, Otis Gospodnetic [EMAIL PROTECTED] wrote:


Hi,



Here is a quick one for Jeff R. about his SolrSharp client.  Looking at

http://solrstuff.org/svn/solrsharp/src/Query/Parameters/QueryParameter.cs, I 
see boost defined as an int(eger):


private int _boost = 1;



Lucene's boosts are floats (see
http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/Query.html#getBoost())



Is there a reason boosts are ints in SolrSharp?



Thanks,

Otis