Re: Field Definitions Ignored

2016-06-07 Thread Shawn Heisey
On 6/7/2016 12:37 PM, Alan G Quan wrote:
> Solr seems to ignore my field definitions in schema.xml. I have
> defined many fields, each using the standard syntax, e.g.,:  name="product_id" type="int" indexed="true" stored="true"/> These
> fields are defined but not yet populated with data. Solr reads the
> schema.xml with no problem on startup, and the core using that schema
> is created successfully, but none of the fields appear in the Schema
> Browser. Is this because the fields are not defined in Solr until they
> are initialized with actual document data?

I just checked the schema browser for a completely empty index.  It has
all the fields defined in that index.

I suspect that the schema you are changing is not the active schema that
is being used by the core you are looking at.

If you are running 5.5 or later, the schema will normally be read from a
file named managed-schema, not a file named schema.xml.

https://issues.apache.org/jira/browse/SOLR-8387

If you are running in cloud mode, the active schema and config are in
zookeeper.   Editing files on the disk will accomplish nothing, unless
you upload the changes to zookeeper and reload the collection or restart
all your Solr instances.

If the file you are editing is under the configsets directory, then it
is not the active schema for a core that already exists unless you are
using the explicit configsets feature, which most people do not do.

Thanks,
Shawn



Re: Field Definitions Ignored

2016-06-07 Thread Susmit Shukla
Does solr streaming aggregation support pagination?
Some documents seem to be skipped if I set "start" parameter for
CloudSolrStream for a sharded collection.

Thanks,
Susmit


Field Definitions Ignored

2016-06-07 Thread Alan G Quan
Solr seems to ignore my field definitions in schema.xml.  I have defined many 
fields, each using the standard syntax, e.g.,:

These fields are defined but not yet populated with data.  Solr reads the 
schema.xml with no problem on startup, and the core using that schema is 
created successfully, but none of the fields appear in the Schema Browser.  Is 
this because the fields are not defined in Solr until they are initialized with 
actual document data?

Thank you,
Alan