Re: Custom Query Implementation

2025-01-03 Thread Viacheslav Dobrynin
e spin-up time shorter due to use of Java 15+ features for > anonymous classes and dynamic constants, which are not available in > Lucene 9.x. > > Uwe > > Am 01.12.2024 um 10:57 schrieb Viacheslav Dobrynin: > > Hi! > > > > Thank you for your reply!

Re: Custom Query Implementation

2024-12-03 Thread Viacheslav Dobrynin
cene/blob/6053e1e31378378f6d310a05ea6d7dcdfc45f48b/lucene/core/src/java/org/apache/lucene/codecs/lucene95/OffHeapByteVectorValues.java#L108 > > > perhaps it may achieve your performance requirements. > > > > > > > > > On Mon, Dec 2, 2024 at 8:03 PM Viacheslav Dobry

Re: Custom Query Implementation

2024-12-02 Thread Viacheslav Dobrynin
> can form a BooleanQuery from the terms in the sparse search vector and > use a simple similarity that sums the term frequencies for ranking. As > long as the number of non-zero dimensions in the query is low, this > should be efficient > > On Mon, Dec 2, 2024 at 1:17 PM Viacheslav

Re: Custom Query Implementation

2024-12-02 Thread Viacheslav Dobrynin
> On Mon, Dec 2, 2024, 09:03 Viacheslav Dobrynin wrote: > > > Hi! > > > > I need to index sparse vectors, whereas as I understand it, > > KnnFloatVectorField is designed for dense vectors. > > Therefore, it seems that this approach will not work. > > > &

Re: Custom Query Implementation

2024-12-02 Thread Viacheslav Dobrynin
Hi! I need to index sparse vectors, whereas as I understand it, KnnFloatVectorField is designed for dense vectors. Therefore, it seems that this approach will not work. вс, 1 дек. 2024 г. в 18:36, Mikhail Khludnev : > Hi, > May it look like KnnFloatVectorField(... DOT_PRODUCT) > and KnnFloatVect

Re: Custom Query Implementation

2024-12-01 Thread Viacheslav Dobrynin
c: $hitDoc. Score: ${hits[i].score}") } reader.close() } Best Regards, Viacheslav Dobrynin! сб, 30 нояб. 2024 г. в 22:11, Mikhail Khludnev : > Hi, > Can't it be better done with FunctionQuery and proper ValueSources? Please > also check Lucene Expressions? > >

Custom Query Implementation

2024-11-30 Thread Viacheslav Dobrynin
chanism for the following index: term1 -> (doc_id1, score), (doc_idN, score), ... termN -> (doc_id1, score), (doc_idN, score), ... Where resulting score will be calculated as: sum(scores) by doc_id for terms in some query Thank you in advance! Best Regards, Viacheslav Dobrynin!