Solr also now has a schema API to dynamically edit the schema without the
need to manually edit the schema file:
https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-AddaDynamicFieldRule


-- Jack Krupansky

On Wed, Feb 25, 2015 at 3:15 PM, Vishal Swaroop <vishal....@gmail.com>
wrote:

> Thanks a lot Alex...
>
> I thought about dynamic fields and will also explore the suggested
> options...
>
> On Wed, Feb 25, 2015 at 1:40 PM, Alexandre Rafalovitch <arafa...@gmail.com
> >
> wrote:
>
> > Several ways. Reading through tutorials should help to get the
> > details. But in short:
> > 1) Map them to dynamic fields using prefixes and/or suffixes.
> > 2) Use dynamic schema which will guess the types and creates the
> > fields based on first use
> >
> > Something like SIREn might also be of interest:
> > http://siren.solutions/siren/overview/
> >
> > Regards,
> >    Alex.
> > ----
> > Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
> > http://www.solr-start.com/
> >
> >
> > On 25 February 2015 at 13:26, Vishal Swaroop <vishal....@gmail.com>
> wrote:
> > > Hi,
> > >
> > > Just wondering if there is a way to handle this use-case in SOLR
> without
> > > manually editing Schema.xml.
> > >
> > > Scenario :
> > > We have xml data with some elements/ attributes which we plan to index.
> > > As we move forward there can be addition of xml elements.
> > >
> > > Is there a way to handle this with out manually adding fields /changing
> > in
> > > schema.xml ?
> > >
> > > Thanks
> > > V
> >
>

Reply via email to