Re: Error Doc id doesn't match the query in vector searches

2025-01-17 Thread Varun Thacker
Lastly, looks like there were some changes to the collector executor in https://github.com/apache/solr/commit/7405bb19fa424ec79c6daaafd986670dc54d7dfe that fixes the issue. I cannot repro the issue anymore So we don't need to create a solr jira after all On Fri, Jan 17, 2025 at 11:44 AM Varun Tha

Re: Error Doc id doesn't match the query in vector searches

2025-01-17 Thread Varun Thacker
I was able to narrow down to https://github.com/apache/solr/commit/cfec121bab2ecfc4c06e20a5533596025ae63d98 that causes this issue. Without that change the bug doesn't repro On Thu, Jan 16, 2025 at 6:49 PM Varun Thacker wrote: > I misspoke, for regular search KnnFloatVectorQuery is the Query ob

Re: Error Doc id doesn't match the query in vector searches

2025-01-16 Thread Varun Thacker
I misspoke, for regular search KnnFloatVectorQuery is the Query object before the rewrite. After the rewrite it's AbstractKnnVectorQuery$DocAndScoreQuery And then when Solr asks for the score the same Query object is passed to the rewrite and becomes a AbstractKnnVectorQuery$DocAndScoreQuery I'll

Re: Error Doc id doesn't match the query in vector searches

2025-01-16 Thread Varun Thacker
I'll have to recreate my setup again since I tried re-building solr without some PRs and it wiped everything out(my mistake!) I was able to get the query Solr sends for search KnnFloatVectorQuery vs what it uses for getting the score {AbstractKnnVectorQuery$DocAndScoreQuery. This might give some b

Re: Error Doc id doesn't match the query in vector searches

2025-01-16 Thread Varun Thacker
I have an index where I can repro it with 100% success. Let me look into what's causing it and create a Solr Jira On Mon, Oct 21, 2024 at 11:11 AM Michael Sokolov wrote: > I think this might be a better question for solr-user@? EG I don't > understand how Solr decides which Query to send to popu

Re: Error Doc id doesn't match the query in vector searches

2024-10-21 Thread Michael Sokolov
I think this might be a better question for solr-user@? EG I don't understand how Solr decides which Query to send to populateScores -- is it the same one that was used to generate the matches in topDocs? It seems as if it should be, but then this error shouldn't happen ... I wonder if you can prin

Error Doc id doesn't match the query in vector searches

2024-10-17 Thread Moll, Dr. Andreas
Hi, we are currently testing Solr 9.7 and experiencing an error we have not seen before with SolR 9.6.1 and we think the problem might occur in the underlying lucene code basis: ERROR o.a.s.h.RequestHandlerBase Server exception => at org.apache.lucene.search.TopFieldCollector.populateScores(To