I'm looking at solr as the search engine for collections of documents where we don't know the types of the data items in the documents in advance. Is this possible? OK, that's probably clear as mud so here's an example.
A user can create a document type dynamically. So they might create a document type for people that has fields name (a text string), age (a non-negative number) and gender (a boolean). Another user might create another document type for cars with make (a text string), enginesize (a non-negative number) and neworused (a boolean).
We can handle this using whoosh (a python search engine) by creating a separate whoosh schema for each document type, so we'd have a schema for the first document type specifying the fields that are to be indexed and the corresponding whoosh data types (and we can destroy the schema later when it is no longer needed).
Can I do something like this with solr? BTW, changing schema.xml to add new field types is not an option: the document types are completely dynamic, their fields may change after creation, and there may be thousands and thousands of them.
Hope this makes sense! It might be totally trivial, so please accept apologies from a Solr noob.