Pardon: Where did you get this field wildcard approach in query syntax? I
don't remeber anyhting like that.

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

Reply via email to