Migration Lucene 3=>4: IndexSearcher.setDefaultFieldSortScoring(..)

2014-07-18 Thread Christian Reuschling
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

We currently migrate one project to Lucene 4 and noticed that the method
IndexSearcher.setDefaultFieldSortScoring(..) disappeared in Lucene 4.0. We 
can't find something
about this in the migration guide. Further, it was never deprecated in Lucene 
3, so we didn't find
related documentation on it. Also didn't find something in the mailing list.

Is it save to just leave it out? We use and display scores also if the result 
list was sorted by
field value, so we set the field sort scoring to true in any case in the past. 
How can we achieve
this now?


best

Christian

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlPJLJEACgkQ6EqMXq+WZg+V5QCguuA+jsI1aL+xuAcjF5f7+SvH
uCwAnisNQtGlQ8H3TMNsj77IM91+NtUR
=GhP4
-END PGP SIGNATURE-

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



Re: Migration Lucene 3=>4: IndexSearcher.setDefaultFieldSortScoring(..)

2014-07-18 Thread Steve Rowe
Hi Christian,

I found an entry about this in the 4.0-ALPHA “Changes in backwards 
compatibility policy” section of Lucene’s CHANGES.txt (html version): 
:

LUCENE-3514: IndexSearcher.setDefaultFieldSortScoring was removed
and replaced with per-search control via new expert search methods
that take two booleans indicating whether hit scores and max score
should be computed. (Mike McCandless) 

See:



Steve

On Jul 18, 2014, at 10:17 AM, Christian Reuschling  
wrote:

> We currently migrate one project to Lucene 4 and noticed that the method
> IndexSearcher.setDefaultFieldSortScoring(..) disappeared in Lucene 4.0. We 
> can't find something
> about this in the migration guide. Further, it was never deprecated in Lucene 
> 3, so we didn't find
> related documentation on it. Also didn't find something in the mailing list.
> 
> Is it save to just leave it out? We use and display scores also if the result 
> list was sorted by
> field value, so we set the field sort scoring to true in any case in the 
> past. How can we achieve
> this now?
> 
> 
> best
> 
> Christian


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



Re: Migration Lucene 3=>4: IndexSearcher.setDefaultFieldSortScoring(..)

2014-07-22 Thread Christian Reuschling
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

perfect - thanks a lot Steve



On 18.07.2014 16:46, Steve Rowe wrote:
> Hi Christian,
> 
> I found an entry about this in the 4.0-ALPHA ?Changes in backwards 
> compatibility policy?
> section of Lucene?s CHANGES.txt (html version):
> :
>
>  LUCENE-3514: IndexSearcher.setDefaultFieldSortScoring was removed and 
> replaced with per-search
> control via new expert search methods that take two booleans indicating 
> whether hit scores and
> max score should be computed. (Mike McCandless)
> 
> See:
> 
> 
>
>  Steve
> 
> On Jul 18, 2014, at 10:17 AM, Christian Reuschling 
>  wrote:
> 
>> We currently migrate one project to Lucene 4 and noticed that the method 
>> IndexSearcher.setDefaultFieldSortScoring(..) disappeared in Lucene 4.0. We 
>> can't find
>> something about this in the migration guide. Further, it was never 
>> deprecated in Lucene 3, so
>> we didn't find related documentation on it. Also didn't find something in 
>> the mailing list.
>> 
>> Is it save to just leave it out? We use and display scores also if the 
>> result list was sorted
>> by field value, so we set the field sort scoring to true in any case in the 
>> past. How can we
>> achieve this now?
>> 
>> 
>> best
>> 
>> Christian
> 
> 
> - To 
> unsubscribe, e-mail:
> java-user-unsubscr...@lucene.apache.org For additional commands, e-mail:
> java-user-h...@lucene.apache.org
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlPOjq0ACgkQ6EqMXq+WZg8eRQCfVZ398ymkvPomHvZFxstEsxY0
YksAn0ipcfPmsHzrG9DJBYSlgJRQ4ACm
=vcFE
-END PGP SIGNATURE-

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