Solr full text search for dynamically added data?

40 Views Asked by At

I'm trying index the data without defining schema.xml, is the any way to apply full text search without adding schema.xml or updating the manged shema?

1

There are 1 best solutions below

2
On

The default operation mode of Solr is to use the Schemaless mode. In this mode Solr will guess what the field type is based on what pattern the data matches the first time a field is included. If it is numeric the first time, Solr will guess that it's going to be a numeric field every time.

If the field contains text it'll be indexed as a text field with processing applied as defined in the default schema.

As long as you're using the default configuration you can submit documents with just the field name and the associated text, then search against the field name as necessary.practice