On 10/11/2020 2:28 PM, Guilherme dos Reis Meneguello wrote:
Hello! My name is Guilherme and I'm a new user of Solr.

Basically, I'm developing a database to help a research team in my
university, but I'm having some problems uploading the files to the
database. Either using curl commands or through the admin interface, I
can't quite upload the files from my computer to Solr and set up the field
types I want that file to have while indexed. I can do that through the
document builder, but my intent was to have the research team I'm
supporting just upload them through the terminal or something like that. My
schema is all set up nicely, however the Solr's field class guessing isn't
guessing correctly😅.

If you're using the capability to automatically add unknown fields, then your schema is NOT "all set up nicely". It's apparently not set up at all.

The "add unknown fields" update processor is not recommended for production, because as you have noticed, it sometimes guesses the field type incorrectly. The fact that it guesses incorrectly is not a bug ... we can't fix it because it's not actually broken. Getting it right in every case is not possible.

Your best bet will be to set up the entire schema manually in advance of any indexing. To do that, you're going to have to know every field that the data uses, and have field definitions already in the schema.

Thanks,
Shawn

Reply via email to