A dynamic field with the name pattern "*" and a type of "string",
stored="true", indexed="true" and multiValued="true" should be good enough
for a "generic" field.
Generally, only use thing in test/experiment/development. It's not
recommended as an approach for production apps.
There is a commented out "*" pattern in the example schema, but it "ignores"
all incoming data, rather than index and store it.
-- Jack Krupansky
-----Original Message-----
From: Furkan KAMACI
Sent: Friday, April 26, 2013 9:16 AM
To: solr-user@lucene.apache.org
Subject: How to define a generic field to hold all undefined fields
I sen some documents to my Solr to be indexed. However I get such kind of
errors:
ERROR: [doc=0579B002] unknown field 'name'
I know that I should define a field named 'name' at mu schema. However
there maybe many of fields like that. How can I define a generic field that
holds all non defined values or maybe how can I ignore them?