Hi everyone,
In my schema, I have the following field:
<dynamicField name="CC_COMP_NAME_*" type="file_text" multiValued="true"
indexed="true" required="false" stored="false"/>
When I index, I create dynamic fields and index into it like so:
doc.addField("CC_COMP_NAME_" + componentName.toUpperCase(),
ccAllFieldsDataValue);
In my query handler, I have this:
{"requestHandler":{"/select_hcl":{
"class":"solr.SearchHandler",
"name":"/select_hcl",
"defaults":{
"defType":"edismax",
"echoParams":"explicit",
"fl":"CC_UNIQUE_FIELD,CC_FILE_PATH,score",
"indent":"true",
"qf":"CC_COMP_NAME_*",
"rows":"100",
"wt":"xml"}}}}
My expectation was when i query using this handler, it will include all the
dynamic fields with the prefix of "CC_COMP_NAME_" however, that is not
happening and I'm getting 0 hits. But when I use the full field name, such
as CC_COMP_NAME_1 or CC_COMP_NAME_2, that works so I know my data is
indexed, it is just that Solr not paying attention to the dynamic field
syntax in "qf".
I don't want to keep a list of those dynamic fields and pass them to my
handler, but if I must, than I must. If so, how can I get the list of
those dynamic fields from Solr so that I don't have to maintain and sync-up
the list myself.
Thanks
Steven