[ https://issues.apache.org/jira/browse/SOLR-17335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris M. Hostetter updated SOLR-17335: -------------------------------------- Attachment: SOLR-17335.patch Status: Open (was: Open) The attached patch refactors some logic out of the existing KnnQParser and into a new AbstractVectorQParserBase class: * the {{f}} param field parsing and type validation * the input vector parsing * the "pre-filtering" configuration & defaults logic. The new AbstractVectorQParserBase class is now also extended by a new VecSimQParser that returns instances of either FloatVectorSimilarityQuery or ByteVectorSimilarityQuery (depending on to the VectorEncoding of the field type) Syntax of the new parser is... {noformat} {!vecSim f=my_vec_field minReturn=0.7 minTraverse=0.2}[1,2,3,4] {noformat} (where {{minTraverse}} is optional and defaults to {{{}-Infinity{}}}) Patch includes testcases and ref-guide updates. I think it's pretty solid? /ping [~eliaporciani], [~abenedetti] > New `vecSim` QParser for Lucene's (Float|Byte)VectorSimilarityQuery classes > --------------------------------------------------------------------------- > > Key: SOLR-17335 > URL: https://issues.apache.org/jira/browse/SOLR-17335 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Chris M. Hostetter > Assignee: Chris M. Hostetter > Priority: Major > Attachments: SOLR-17335.patch > > > Lucene (9.10 i believe?) has added (Float|Byte)VectorSimilarityQuery classes > as alternatives to KnnVectorQuery -- instead of being configured with a > 'topK' they are configured with minimum similarity threshold(s) for returning > results (and limiting the traversal of the graph) > This ticket tracks adding a Solr QParser for these queries. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org