Hi,

I just downloaded Solr 5.3.1, and after starting Solr with the following
command:

bin/solr start -p 8985

I attempt to CREATE a Solr-core with the following command:

curl
'http:localhost:8985/solr/admin/cores?action=CREATE&name=test-core&instanceDir=/Users/nw/Downloads/twc-session-dash/collection1'

where twc-session-dash directory has
<collection1>
  <conf>
    schema.xml
    solrconfig.xml
  <data>
     <index>
       _2.fdt
       _2.fnm
       _2_Lucene41_0.doc
       _2_Lucene41_0.tip
       _2.fdx                   
       _2.si                    
       _2_Lucene41_0.tim        
       segments_4

solrconfig.xml has the following content:
<?xml version='1.0'
encoding='UTF-8'?><config><indexConfig><rabBufferSizeMB>1024</rabBufferSizeMB><maxBufferedDocs>1000</maxBufferedDocs><maxFieldLength>10000</maxFieldLength><deletionPolicy
class="solr.SolrDeletionPolicy"></deletionPolicy></indexConfig><query><maxBooleanClauses>2147483647</maxBooleanClauses></query><lib
dir="/var/apps/solr/lib"></lib><lib dir="./lib"></lib><lib
dir="../lib"></lib><requestDispatcher
handleSelect="true"></requestDispatcher><searchComponent name="terms"
class="solr.TermsComponent"></searchComponent><requestHandler name="/terms"
class="solr.SearchHandler" startup="lazy"><lst name="defaults"><bool
name="terms">true</bool><bool name="distrib">false</bool></lst><arr
name="components"><str>terms</str></arr></requestHandler><requestHandler
name="standard" class="solr.StandardRequestHandler"
default="true"></requestHandler><updateHandler
class="solr.DirectUpdateHandler2"></updateHandler><requestHandler
name="/update"
class="solr.UpdateRequestHandler"></requestHandler><luceneMatchVersion>LUCENE_41</luceneMatchVersion></config>

And see schema.xml at bottom of post:

And the core is ostensibly created without an issue (numDocs is 59, which is
correct and no error logged) But, when I ping the newly created core's
schema via:

curl 'http://localhost:8985/solr/test-core/schema/fields'

Only id, _root_, _text_, and _version_ are returned. When I query a known
field in my schema.xml like _id, I am told "undefined field _id."

The changes to the directory include that Solr 5.3.1 has populated a
core-properties file at the same level as conf and data with content:
#Written by CorePropertiesLocator
#Thu Oct 29 22:53:57 UTC 2015
name=test-core
coreNodeName=core_node1

Added tlog/ at the same level as index, and write.lock within index.

I investigate the Solr Cloud UI, and note that my schema fields as well as
the default fields are mixed together in the Schema Browser dropdown for
test-core. However, the only fields available in the Analyse Fieldname /
FieldType: dropdown in the Analysis tab are the default fields. 

I am running Java version 1.7.0_51 on this machine, which is an openstack
machine.

When I install Solr 5.3.1 on my local machine, which is running Java version
"1.8.0_45" I have no issue. I am able to CREATE the core, I see my and only
my fields when I query the schema, and am able to query these fields no
problem.

Please advise how I can CREATE solr indices on my openstack machine. Thank
you,

<?xml version='1.0' encoding='UTF-8'?><schema name="session"
version="1.5"><types><fieldType class="solr.TrieDateField"
sortMissingLast="true" positionIncrementGap="0" indexed="true"
stored="false" name="date"></fieldType><fieldType name="boolean"
class="solr.BoolField" sortMissingLast="true" omitNorms="true"
termVectors="false"></fieldType><fieldType name="string"
class="solr.StrField" sortMissingLast="true" omitNorms="true"
termVectors="false"></fieldType><fieldType class="solr.TrieField"
sortMissingLast="true" positionIncrementGap="0" indexed="true"
stored="false" type="long" name="int"></fieldType><fieldType
class="solr.TrieField" sortMissingLast="true" positionIncrementGap="0"
indexed="true" stored="false" type="double"
name="double"></fieldType><fieldType name="geo" class="solr.StrField"
sortMissingLast="true" omitNorms="true"
termVectors="false"></fieldType><fieldType class="solr.BinaryField"
name="binary"></fieldType></types><fields><field multiValued="false"
stored="false" indexed="true" name="sess-count-int-3-months"
type="int"></field><field multiValued="false" stored="true" indexed="true"
name="_id" type="string"></field><field multiValued="false" stored="false"
indexed="true" name="input-count-int-1-week" type="int"></field><field
multiValued="true" stored="false" indexed="true" name="sessions-1-month"
type="string"></field><field multiValued="true" stored="false"
indexed="true" name="sessions-1-year" type="string"></field><field
multiValued="false" stored="false" indexed="true"
name="impression-count-int-6-months" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="device-count-int-1-week" type="int"></field><field multiValued="false"
stored="false" indexed="true" name="impression-count-int-1-year"
type="int"></field><field multiValued="false" stored="false" indexed="true"
name="device-count-int-1-year" type="int"></field><field multiValued="true"
stored="false" indexed="true" name="sessions-3-months"
type="string"></field><field multiValued="true" stored="false"
indexed="true" name="sessions-1-week" type="string"></field><field
multiValued="false" stored="false" indexed="true"
name="device-count-int-2-weeks" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="input-count-int-6-months" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="impression-count-int-1-week" type="int"></field><field
multiValued="false" stored="false" indexed="true" name="device-id-6-months"
type="string"></field><field multiValued="false" stored="false"
indexed="true" name="device-count-int-1-month" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="device-count-int-3-months" type="int"></field><field
multiValued="false" stored="false" indexed="true" name="device-id-1-month"
type="string"></field><field multiValued="false" stored="false"
indexed="true" name="device-id-3-months" type="string"></field><field
multiValued="false" stored="false" indexed="true" name="device-id-2-weeks"
type="string"></field><field multiValued="false" stored="false"
indexed="true" name="input-count-int-1-year" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="sess-count-int-1-year" type="int"></field><field multiValued="false"
stored="false" indexed="true" name="sess-count-int-6-months"
type="int"></field><field multiValued="false" stored="false" indexed="true"
name="input-count-int-2-weeks" type="int"></field><field multiValued="true"
stored="false" indexed="true" name="sessions-6-months"
type="string"></field><field multiValued="false" stored="false"
indexed="true" name="device-id-1-year" type="string"></field><field
multiValued="false" stored="false" indexed="true"
name="impression-count-int-3-months" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="impression-count-int-2-weeks" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="sess-count-int-1-month" type="int"></field><field multiValued="false"
stored="false" indexed="true" name="sess-count-int-1-week"
type="int"></field><field multiValued="true" stored="false" indexed="true"
name="sessions-2-weeks" type="string"></field><field multiValued="false"
stored="false" indexed="true" name="device-id-1-week"
type="string"></field><field multiValued="false" stored="false"
indexed="true" name="input-count-int-3-months" type="int"></field><field
multiValued="false" stored="false" indexed="true"
name="sess-count-int-2-weeks" type="int"></field><field multiValued="false"
stored="false" indexed="true" name="device-count-int-6-months"
type="int"></field><field multiValued="false" stored="false" indexed="true"
name="input-count-int-1-month" type="int"></field><field multiValued="false"
stored="false" indexed="true" name="impression-count-int-1-month"
type="int"></field></fields><defaultSearchField>_id</defaultSearchField><uniqueKey>_id</uniqueKey></schema>



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-5-3-1-CREATE-defaults-to-schema-less-mode-Java-version-1-7-0-45-tp4237305.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to