Subject: Query regarding Dynamic Fields


Hello Bruno,

Thanks for you suggestion.

But in our use case there are large no. of fields so every time making copy field will not feasible.

i.e.: fields: ABC_Field/Start_Date, ABD_Field/Complete_Date, ABD_Field/info/User_Name, ABD_Field/info/Email

As we use in return field i.e.: *Start_Date, *Complete_Date, *User_Name. Similar We need to use field name to make search query.

Regards,
Jay Harkhani.

________________________________
From: Bruno Mannina <[EMAIL PROTECTED]>
Sent: Wednesday, December 5, 2018 6:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Query regarding Dynamic Fields

Hi Jay,

In my case, I created a CopyField for this case.

i.e.
<copyField source="ABC_*" dest="ABC"/>

And of course define ABC before
<field name="ABC" type="text_general" indexed="true" stored="true"
multiValued="true"/>

-----Message d'origine-----
De : jay harkhani [mailto:[EMAIL PROTECTED]]
Envoyé : mercredi 5 décembre 2018 13:29
À : [EMAIL PROTECTED]
Objet : Query regarding Dynamic Fields

Hello All,
We are using dynamic fields in our collection. We want to use it in query to
fetch records. Can someone please advice on it?

i.e.: q=ABC_*:"myValue"

Here "ABC_*" is dynamic field. Currently when we tried if provide field name
as above it gives "org.apache.solr.search.SyntaxError". It only returns data
when provide actual field name.

Thank you for any help you can offer.

Regards,
Jay Harkhani.
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus