lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tanner Postert <tanner.post...@gmail.com>
Subject No system property or default value specified for...
Date Fri, 14 Jan 2011 18:49:49 GMT
I'm trying to dynamically add a core to a multi core system using the
following command:

http://localhost:8983/solr/admin/cores?action=CREATE&name=items&instanceDir=items&config=data-config.xml&schema=schema.xml&dataDir=data&persist=true

the data-config.xml looks like this:

<dataConfig>
  <dataSource type="JdbcDataSource"
   url="jdbc:mysql://localhost/"
   ...
   name="server"/>
  <document name="items">
   <entity dataSource="server" name="locals"
       query="select code from master.locals"
       rootEntity="false">
    <entity dataSource="server" name="item"
        query="select '${local.code}' as localcode,
        items.*
FROM ${local.code}_meta.item
WHERE
  item.lastmodified > '${dataimporter.last_index_time}'
OR
  '${dataimporter.request.clean}' != 'false'
order by item.objid"
/>
</entity>
</document>
</dataConfig>

this same configuration works for a core that is already imported into the
system, but when trying to add the core with the above command I get the
following error:

No system property or default value specified for local.code

so I added a <property/> tag in the solr.xml figuring that it needed some
type of default value for this to work, then I restarted solr, but now when
I try the import I get:

No system property or default value specified for
dataimporter.last_index_time

Do I have to define a default value for every variable I will conceivably
use for future cores? is there a way to bypass this error?

Thanks in advance

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message