Re: Need help for conversion code from Lucene 2.4.0 to 8.11.2

2023-02-06 Thread Uwe Schindler
Hi, Since around Lucene 4 (maybe already in 3) there is no way to write index files in random access anymore. All data must be written in sequence (aka input stream). This is especially important as Lucene index files use checksums since around Lucene 5. Uwe Am 06.02.2023 um 11:57 schrieb S

RE: Need help for conversion code from Lucene 2.4.0 to 8.11.2

2023-02-06 Thread Saha, Rajib
Hi Mikhail, Thanks for all you’re your suggestions in one shot. It helped us a lot. Thank you very much once again. 😊 Need one more suggestion for below API. == IndexOutput.seek(long pos) == We have used it extensively in around 40-50 places. Curre

Re: Change score with distance SortField

2023-02-06 Thread Adrien Grand
Hi Michal, The best way to do this would be to put a LatLonPoint#newDistanceFeatureQuery in a SHOULD clause. It's not as flexible as leveraging expressions, but it has the benefit of not disabling dynamic pruning. On Mon, Feb 6, 2023 at 10:33 AM Michal Hlavac wrote: > > Hi, > I would like to inf

Change score with distance SortField

2023-02-06 Thread Michal Hlavac
Hi, I would like to influence the score using geographical distance. More distant documents lower the score. I have sort field: SortField geoSort = LatLonDocValuesField.newDistanceSort("location", pos.getLatitude(), pos.getLongitude()); Then I tried add this sort field to SimpleBindings. I've fo