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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:22:00
Script start
Timing: Jan 18 2025 10:22:00
Module start 'layout'
Timing: Jan 18 2025 10:22:00
Module start 'content'
Timing: Jan 18 2025 10:22:01
Module end 'content'
Timing: Jan 18 2025 10:22:01
Script end

Main resources:

Total runtime0.6106 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.3672152.6250
Module start 'layout' 0.00730.0084 741.992239.4453
Module start 'content' 0.01570.5937 781.4375493.3984
Module end 'content' 0.60940.0011 1,274.835912.1641
Script end 0.6105  1,287.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6183160.0002
Check MTime0.00140.2368160.0001
Mysql Total
Database connection0.00090.148210.0009
Mysqli_queries0.558791.5026540.0103
Looping result0.00060.1029520.0000
Template Total0.537888.120.2689
Template load0.00480.781620.0024
Template processing0.533087.297220.2665
Template load and register function0.00020.038010.0002
states
state_id_array0.00150.243410.0015
state_identifier_array0.00120.203920.0006
Override
Cache load0.00400.6548140.0003
Sytem overhead
Fetch class attribute can translate value0.00070.106810.0007
Fetch class attribute name0.00110.173530.0004
XML
Image XML parsing0.00060.097610.0006
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00090.1537170.0001
String conversion0.00000.002040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs