[ 
https://issues.apache.org/jira/browse/LUCENE-5598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Park JungHo updated LUCENE-5598:
--------------------------------

    Description: 
I had been generating long type's indexing data using LongField(Field name is 
'boost' and  value is atomicLong.) for using CustomScoreQuery.
And then, I'm applied following code.

//code start ========================================
FunctionQuery fquery = new FunctionQuery(new LongFieldSource("boost"));
CustomScoreQuery customQuery = new ScoreQuery(query, fquery);
//code end =========================================

If indexed data count is 100, I have expecting 100, 99, 98, ... 91.
But, result was not matched my expected when indexed data has more and more 
counts. (For instance 999999985, 999999986, 999999987, 999999988, ... 999999994 
when one billion index count )

I had been think that was caused by scoring alogorithm returned float value. 
(Floating point limit.)
That is correct?
How can I get the my expecting result?

  was:
I had been generating long type's indexing data using LongField(Field name is 
'boost' and  value is atomicLong.) for using CustomScoreQuery.
And then, I'm applied following code.

//code start ========================================
FunctionQuery fquery = new FunctionQuery(new LongFieldSource("boost"));
CustomScoreQuery customQuery = new ScoreQuery(query, fquery);
//code end =========================================

If indexed data count is 100, I have expecting 100, 99, 98, ... 91.
But, result was not matched my expected when indexed data has more and more 
counts. (For instance 85, 86, 87, 88, ... 94 when one billion index count )

I had been think that was caused by scoring alogorithm returned float value. 
(Floating point limit.)
That is correct?
How can I get the my expecting result?


> About Scoring
> -------------
>
>                 Key: LUCENE-5598
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5598
>             Project: Lucene - Core
>          Issue Type: Wish
>          Components: core/query/scoring
>    Affects Versions: 4.7
>            Reporter: Park JungHo
>              Labels: mentor, patch
>             Fix For: 4.7
>
>
> I had been generating long type's indexing data using LongField(Field name is 
> 'boost' and  value is atomicLong.) for using CustomScoreQuery.
> And then, I'm applied following code.
> //code start ========================================
> FunctionQuery fquery = new FunctionQuery(new LongFieldSource("boost"));
> CustomScoreQuery customQuery = new ScoreQuery(query, fquery);
> //code end =========================================
> If indexed data count is 100, I have expecting 100, 99, 98, ... 91.
> But, result was not matched my expected when indexed data has more and more 
> counts. (For instance 999999985, 999999986, 999999987, 999999988, ... 
> 999999994 when one billion index count )
> I had been think that was caused by scoring alogorithm returned float value. 
> (Floating point limit.)
> That is correct?
> How can I get the my expecting result?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to