solr 5 and schema.xml
Had a look at previous postings, but am still thoroughly confused. I installed Solr 5 out of the box, built a core and uploaded some documents using dynamic field types. I can see my uploaded docs using the get method. When I query those docs, results seem all over the place. The answer seems to be to alter my schema.xml file, but it doesn't appear to be in conf directory where everyone seems to be directing me to. I've then read that solr 5 doesn't by default use the schema.xml file, but is using a managed schema by default. Apparently, I can't alter the schema.xml file (which I can't find) but now need to use a REST api. However, since I'm using dynamic fields, I'm not sure if this is still necessary. I've hunted high and low for clear documentation on this, but am still confused. I need to build a single index based upon customer data, searching by email address. Any help, or pointing in the right direction to where this is clearly documented would be gratefully received. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-5-and-schema-xml-tp4216290.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr 5 and schema.xml
You have the choice. You can use dynamic schema and control it using API or use classic schema and control it explicitly via schema.xml. You control that when you create the schema by using different templates. It's just the default one is a dynamic schema. Also, dynamic fields is not the same as dynamic schema, but I think you knew that. You can use dynamic fields with either one of them. So, try something like this: bin/solr create_core -c classic_core -d basic_configs Regards, Alex. P.s. You still get some APIs even with classic schema. But that's more for overriding solrconfig.xml settings. Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 8 July 2015 at 05:11, spleenboy paul.br...@neilltech.com wrote: Had a look at previous postings, but am still thoroughly confused. I installed Solr 5 out of the box, built a core and uploaded some documents using dynamic field types. I can see my uploaded docs using the get method. When I query those docs, results seem all over the place. The answer seems to be to alter my schema.xml file, but it doesn't appear to be in conf directory where everyone seems to be directing me to. I've then read that solr 5 doesn't by default use the schema.xml file, but is using a managed schema by default. Apparently, I can't alter the schema.xml file (which I can't find) but now need to use a REST api. However, since I'm using dynamic fields, I'm not sure if this is still necessary. I've hunted high and low for clear documentation on this, but am still confused. I need to build a single index based upon customer data, searching by email address. Any help, or pointing in the right direction to where this is clearly documented would be gratefully received. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-5-and-schema-xml-tp4216290.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: solr 5 and schema.xml
bq: I've then read that solr 5 doesn't by default use the schema.xml file, but is using a managed schema by default. Apparently, I can't alter the schema.xml file (which I can't find) but now need to use a REST api. However, since I'm using dynamic fields, I'm not sure if this is still necessary. Not at all, although it _is_ confusing. There's 1 classic, i.e. non-cloud Solr 2 SolrCloud and the cross product of 1 standard (there should be a conf/schema.xml file to edit) 2 schemaless 3 managed schema So you have six possible configurations, although whether you're running in cloud mode or not the schemaless and managed schemas are used identically. So, which ones are you interested in? If you're running in SolrCloud mode, you won't find any conf directory to edit, the files are stored in Zookeeper and you must use the zkcli script with the upconfig command to change them. Although for development there's a sweet little IntelliJ plugin that lets you edit them directly... Best, Erick On Wed, Jul 8, 2015 at 3:31 AM, Alexandre Rafalovitch arafa...@gmail.com wrote: You have the choice. You can use dynamic schema and control it using API or use classic schema and control it explicitly via schema.xml. You control that when you create the schema by using different templates. It's just the default one is a dynamic schema. Also, dynamic fields is not the same as dynamic schema, but I think you knew that. You can use dynamic fields with either one of them. So, try something like this: bin/solr create_core -c classic_core -d basic_configs Regards, Alex. P.s. You still get some APIs even with classic schema. But that's more for overriding solrconfig.xml settings. Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 8 July 2015 at 05:11, spleenboy paul.br...@neilltech.com wrote: Had a look at previous postings, but am still thoroughly confused. I installed Solr 5 out of the box, built a core and uploaded some documents using dynamic field types. I can see my uploaded docs using the get method. When I query those docs, results seem all over the place. The answer seems to be to alter my schema.xml file, but it doesn't appear to be in conf directory where everyone seems to be directing me to. I've then read that solr 5 doesn't by default use the schema.xml file, but is using a managed schema by default. Apparently, I can't alter the schema.xml file (which I can't find) but now need to use a REST api. However, since I'm using dynamic fields, I'm not sure if this is still necessary. I've hunted high and low for clear documentation on this, but am still confused. I need to build a single index based upon customer data, searching by email address. Any help, or pointing in the right direction to where this is clearly documented would be gratefully received. -- View this message in context: http://lucene.472066.n3.nabble.com/solr-5-and-schema-xml-tp4216290.html Sent from the Solr - User mailing list archive at Nabble.com.