예제 #1
0
        /// <inheritdoc />
        public SolrSchema GetSchema(string schemaFileName)
        {
            string schemaXml = connection.Get("/admin/file", new[] { new KeyValuePair <string, string>("file", schemaFileName) });
            var    schema    = XDocument.Parse(schemaXml);

            return(schemaParser.Parse(schema));
        }
예제 #2
0
        public SolrSchema GetSchema()
        {
            string schemaXml = new GetSchemaCommand().Execute(connection);
            var    schema    = XDocument.Parse(schemaXml);

            return(schemaParser.Parse(schema));
        }