Forums / Extensions / eZ Find / indexing trouble

indexing trouble

Author Message

Norman Leutner

Wednesday 13 May 2009 12:13:30 pm

While indexing a a site i have some trouble with attributes that have no values:

Result:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body><h2>HTTP ERROR: 500</h2><pre>Error while creating field 'attr_breite3_si{type=sint,properties=indexed,stored,omitNorms,multiValued,sortMissingLast}' from value ''

org.apache.solr.common.SolrException: Error while creating field 'attr_breite3_si{type=sint,properties=indexed,stored,omitNorms,multiValued,sortMissingLast}' from value ''
....

the attribute is integer, searchable, but not required.
The class itself has changed some times.

Any indes how to get these objects indexed ?

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Norman Leutner

Wednesday 13 May 2009 12:44:22 pm

I added

  if ($value != '')
  {
    ....
  }

to the function eZSolrDoc::addField() which solved the problem...

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh