Solr schema field
I've made a schema for solr and I don't know the name of every field from
the document I want to add, so I defined a dynamicField like this:
<dynamicField name="*" type="text_general" indexed="true" stored="true" />
Right now I'm testing and I don't get an error when importing for
undefined fields in the document, but when I try to query for *:something
(anything other than "*") I don't get any results back. My question is how
can I define a catch all field, is there any right way to do this? Or am I
under the wrong impression that a query for *:something would normally
search in all the documents and all the fields for "something"?
No comments:
Post a Comment