You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/01/03 19:38:30 UTC

svn commit: r1428538 - in /stanbol/trunk/entityhub/yard/solr/src/main: java/org/apache/stanbol/entityhub/yard/solr/impl/ resources/solr/core/

Author: rwesten
Date: Thu Jan  3 18:38:30 2013
New Revision: 1428538

URL: http://svn.apache.org/viewvc?rev=1428538&view=rev
Log:
STANBOL-875: added SolrYard schema.xml configuration including paoding filed definition; minor: corrected language code for Japanese to 'ja' (was 'jp'), The SolrYard now logs ignored empty and NULL values on DEBUG level (was WARN)

Added:
    stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/paoding.solrindex.zip   (with props)
Modified:
    stanbol/trunk/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java
    stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/default.solrindex.zip
    stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/entityhub.solrindex.zip
    stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/smartcn.solrindex.zip

Modified: stanbol/trunk/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java?rev=1428538&r1=1428537&r2=1428538&view=diff
==============================================================================
--- stanbol/trunk/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java (original)
+++ stanbol/trunk/entityhub/yard/solr/src/main/java/org/apache/stanbol/entityhub/yard/solr/impl/SolrYard.java Thu Jan  3 18:38:30 2013
@@ -82,6 +82,7 @@ import org.apache.stanbol.entityhub.yard
 import org.apache.stanbol.entityhub.yard.solr.model.IndexField;
 import org.apache.stanbol.entityhub.yard.solr.model.IndexValue;
 import org.apache.stanbol.entityhub.yard.solr.model.IndexValueFactory;
+import org.apache.stanbol.entityhub.yard.solr.model.NoConverterException;
 import org.apache.stanbol.entityhub.yard.solr.query.IndexConstraintTypeEnum;
 import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.service.cm.ConfigurationException;
@@ -1351,7 +1352,16 @@ public class SolrYard extends AbstractYa
                             inputDocument.addField(fieldName, value.getValue());
                         }
                     }
-                } catch (Exception e) {
+                } catch (NoConverterException e) {
+                    log.warn(
+                        String.format("Unable to convert value %s (type:%s) for field %s!", next,
+                            next.getClass(), field), e);
+                } catch (IllegalArgumentException e) { //usually because the Object is NULL or empty
+                    if(log.isDebugEnabled()){
+                        log.debug(String.format("Illegal Value %s (type:%s) for field %s!", next,
+                                next.getClass(), field), e);
+                    }
+                } catch (RuntimeException e) {
                     log.warn(
                         String.format("Unable to process value %s (type:%s) for field %s!", next,
                             next.getClass(), field), e);

Modified: stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/default.solrindex.zip
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/default.solrindex.zip?rev=1428538&r1=1428537&r2=1428538&view=diff
==============================================================================
Binary files - no diff available.

Modified: stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/entityhub.solrindex.zip
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/entityhub.solrindex.zip?rev=1428538&r1=1428537&r2=1428538&view=diff
==============================================================================
Binary files - no diff available.

Added: stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/paoding.solrindex.zip
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/paoding.solrindex.zip?rev=1428538&view=auto
==============================================================================
Binary file - no diff available.

Propchange: stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/paoding.solrindex.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/smartcn.solrindex.zip
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/main/resources/solr/core/smartcn.solrindex.zip?rev=1428538&r1=1428537&r2=1428538&view=diff
==============================================================================
Binary files - no diff available.