You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stanbol.apache.org by Rupert Westenthaler <ru...@gmail.com> on 2011/05/23 12:56:35 UTC

Predefined Solr Core Configurations (was: Fwd: svn commit: r1124351 - in /incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf: cache/conf/schema.xml entityhub/conf/schema.xml)

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:  <og...@apache.org>
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: stanbol-commits@incubator.apache.org


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             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Re: Predefined Solr Core Configurations (was: Fwd: svn commit: r1124351 - in /incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf: cache/conf/schema.xml entityhub/conf/schema.xml)

Posted by Tommaso Teofili <to...@gmail.com>.
good catch Rupert!

2011/5/24 Rupert Westenthaler <ru...@gmail.com>

> see https://issues.apache.org/jira/browse/STANBOL-208
>
> On Tue, May 24, 2011 at 7:22 AM, Olivier Grisel
> <ol...@ensta.org> wrote:
> > 2011/5/23 Rupert Westenthaler <ru...@gmail.com>:
> >> 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
> >
> > That would be great indeed.
> >
> > --
> > Olivier
> > http://twitter.com/ogrisel - http://github.com/ogrisel
> >
>
>
>
> --
> | Rupert Westenthaler             rupert.westenthaler@gmail.com
> | Bodenlehenstraße 11                             ++43-699-11108907
> | A-5500 Bischofshofen
>

Re: Predefined Solr Core Configurations (was: Fwd: svn commit: r1124351 - in /incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf: cache/conf/schema.xml entityhub/conf/schema.xml)

Posted by Rupert Westenthaler <ru...@gmail.com>.
see https://issues.apache.org/jira/browse/STANBOL-208

On Tue, May 24, 2011 at 7:22 AM, Olivier Grisel
<ol...@ensta.org> wrote:
> 2011/5/23 Rupert Westenthaler <ru...@gmail.com>:
>> 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
>
> That would be great indeed.
>
> --
> Olivier
> http://twitter.com/ogrisel - http://github.com/ogrisel
>



-- 
| Rupert Westenthaler             rupert.westenthaler@gmail.com
| Bodenlehenstraße 11                             ++43-699-11108907
| A-5500 Bischofshofen

Re: Predefined Solr Core Configurations (was: Fwd: svn commit: r1124351 - in /incubator/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/conf: cache/conf/schema.xml entityhub/conf/schema.xml)

Posted by Olivier Grisel <ol...@ensta.org>.
2011/5/23 Rupert Westenthaler <ru...@gmail.com>:
> 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

That would be great indeed.

-- 
Olivier
http://twitter.com/ogrisel - http://github.com/ogrisel