I got it from ChatGpt and now I can see it is actually wrong. It invented the solution. Sorry about it
I gues then the solution would be to created nested documetns with one per chunk? Thanks Sergio On Wed, 27 Nov 2024 at 15:12, Mikhail Khludnev <m...@apache.org> wrote: > if I read this grammar correctly there are no trailing wildcard in field > name > > https://github.com/apache/solr/blob/6d167b1b2fcff15800b6f9ffc39172f67d8bc87c/solr/core/src/java/org/apache/solr/parser/QueryParser.jj#L251 > > On Wed, Nov 27, 2024 at 4:38 PM Sergio García Maroto <marot...@gmail.com> > wrote: > > > Hi all, > > > > I would like to get your opnion on something I am doing at the moment > > I am currently trying to test some queries using a hybrid seach aproach > > with lexical queries and vector queries. > > Text data to be searched sometimes is pretty big so I am chunking it into > > several chunks of 512 tokens aproximately. > > To index those chunks in text and vector format I am using dynamic > fields. > > > > Below fields in schema.xml > > <fieldType name="knn_vector_768" class="solr.DenseVectorField" > > vectorDimension="768" similarityFunction="cosine"/> > > <dynamicField name="SemanDynamicText_*" type="text_general" > indexed="true" > > stored="true"/> <dynamicField name="SemanDynamicVector_*" type= > > "knn_vector_768" indexed="true" stored="true"/> > > > > I want to search on all fields created dynamically but I am not being > able > > to create correct query. > > Basically my query looks like SemanDynamicText_*:years but Solr complains > > about not finding the field > > > > "error":{ > "metadata":["error-class","org.apache.solr.common.SolrException", > > "root-error-class","org.apache.solr.common.SolrException"], "msg":"no > field > > name specified in query and no default specified via 'df' param", > > "code":400 > > } > > > > Is this approach I am using correct or maybe there is another way of > > creating or searching acrross this data? > > > > Thanks a lot Sergio Maroto > > > > > -- > Sincerely yours > Mikhail Khludnev >