Re: Add fields without manually editing Schema.xml.

2015-02-25 Thread Jack Krupansky
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 wrote: > Thanks a lot Al

Re: Add fields without manually editing Schema.xml.

2015-02-25 Thread Vishal Swaroop
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 wrote: > Several ways. Reading through tutorials should help to get the > details. But in short: > 1) Map them to dynamic fields using prefix

Re: Add fields without manually editing Schema.xml.

2015-02-25 Thread Alexandre Rafalovitch
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://sire

Add fields without manually editing Schema.xml.

2015-02-25 Thread Vishal Swaroop
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 a