Hi
To avoid such duplications in Solr Configurations I implemented the
automatic initialization of cores based on the default configurations.
Both the "entityhub" and the "cache" core do in fact use the default
configuration. Therefore the two configurations should no longer be
needed but be initialized automatically based on the default
configuration available under "solr/core".
I will check that and make the according changes.
In addition one could add a "named configuration" feature that allows
provide "named" solr configuration within any bundle. The name of the
configuration would be configurable via the OSGI configuration and the
SolrYard would use the normal class loader to init the core with the
requested configuration.
The used path could be "config/solr/core/{name}".
The current default config would be "config/solr/core/default"
Other useful configurations would be
- index only (no storage of values)
- entity-tagging (a configuration similar to the index currently used
for the autotagging component.
- others??
WDYT
Rupert
---------- Forwarded message ----------
From: <[email protected]>
Date: Wed, May 18, 2011 at 7:45 PM
Subject: svn commit: r1124351 - in
/incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf:
cache/conf/schema.xml entityhub/conf/schema.xml
To: [email protected]
Author: ogrisel
Date: Wed May 18 17:45:04 2011
New Revision: 1124351
URL: http://svn.apache.org/viewvc?rev=1124351&view=rev
Log:
STANBOL-202: missing configuration for other cores
Modified:
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/cache/conf/schema.xml
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/entityhub/conf/schema.xml
Modified:
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/cache/conf/schema.xml
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/cache/conf/schema.xml?rev=1124351&r1=1124350&r2=1124351&view=diff
==============================================================================
---
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/cache/conf/schema.xml
(original)
+++
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/cache/conf/schema.xml
Wed May 18 17:45:04 2011
@@ -267,7 +267,8 @@
(via copyField). This is used as default search field.
The type may be changed.
-->
- <field name="_text" type="textgen" indexed="true" stored="false"
multiValued="true"/>
+ <field name="_text" type="textgen" indexed="true" stored="false"
+ multiValued="true" termVectors="true"/>
<!--
used to store all references of the document (via copyField).
This field may be used to search for related entities.
Modified:
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/entityhub/conf/schema.xml
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/entityhub/conf/schema.xml?rev=1124351&r1=1124350&r2=1124351&view=diff
==============================================================================
---
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/entityhub/conf/schema.xml
(original)
+++
incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf/entityhub/conf/schema.xml
Wed May 18 17:45:04 2011
@@ -267,7 +267,8 @@
(via copyField). This is used as default search field.
The type may be changed.
-->
- <field name="_text" type="textgen" indexed="true" stored="false"
multiValued="true"/>
+ <field name="_text" type="textgen" indexed="true" stored="false"
+ multiValued="true" termVectors="true"/>
<!--
used to store all references of the document (via copyField).
This field may be used to search for related entities.
--
| Rupert Westenthaler [email protected]
| Bodenlehenstraße 11 ++43-699-11108907
| A-5500 Bischofshofen