Hi everyone, It looks like I'm misusing SolrJ API SolrInputDocument.addField() thus I need clarification.
Here is an example of what I have in my code: SolrInputDocument doc = new SolrInputDocument(); doc.addField("MyFieldOne", "some data"); doc.addField("MyFieldTwo", 100); The above code is creating 2 fields for me (if they don't exist already) and then indexing the data to those fields. The data is "some data" and the number 100 However, when the field is created, it is not using the field type that I custom created in my schema. My question is, how do I tell addField() to use my custom field type? I _think_ I have to first SolrInputDocument.createField() and then call SolrInputDocument.addField()? Or is the process of indexing data into a field done via some other API I overlooked? I need some guidance to make sure I get the logic right. Thanks. Steven