Why ezfind makes difference between upper and lowercase

Author Message

David Sebastiao

Monday 07 September 2009 10:17:10 am

Hi,

I have a very strange issue with ezfind 2.0. Maybe it's holliday's effect but my instance makes difference between uppecase and lowercase. So i don't have same result with 'foo' and 'FoO'
I'm very disapointed. I've checked if spellcheck was on true.

My request

{def $search=fetch( ezfind, search,
			                    hash( query,     $search_text,
						     'class_id', array(  '37' ),
						     'offset',$offset,
                           	                     'limit',$page_limit,
                           			     'sort_by', hash( 'name', 'asc' ),
                           			     'spell_check', array(true(),'default')
						   ) )}

My ezfind.ini seems ok too

[SpellCheck]
SpellCheck=enabled
DefaultDictionary=default

As described here : <i>http://www.mail-archive.com/svn-ezfind@lists.ez.no/msg00206.html</i>
i've changed solrconfig.xml
- <str name="buildOnCommit">true</str>
+ <str name="buildOnOptimize">true</str>
Restart Solr Service, and run updatesearchindex but still no effect.

Thanks a lot.

David Sebastiao

Wednesday 09 September 2009 3:39:43 am

Ok i found a solution.
I had sorting bug with ezstring attribute soaccording to http://issues.ez.no/IssueView.php?Id=15164 I added DatatypeMap[ezstring]=text in [SolrFieldMapSettings] section in my ezfind.ini.

# Datatype to field type map.
#
# Example:
DatatypeMap[ezstring]=string
DatatypeMap[eztext]=text
DatatypeMap[ezboolean]=boolean
DatatypeMap[ezdate]=date
DatatypeMap[ezdatetime]=date
DatatypeMap[ezfloat]=sfloat
DatatypeMap[ezinteger]=sint
DatatypeMap[ezprice]=sfloat
DatatypeMap[eztime]=date

Thanks to Carlo's and Max's post (http://ez.no/fr/developer/forum/extensions/ez_find/wildcards_and_phrases_and_spanish_order_of_the_results/re_wildcards_and_phrases_and_spanish_order_o__1)
So I resolved my issue changing DatatypeMap[ezstring]=text and creating a custom datatype.

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 15:16:52
Script start
Timing: Jan 18 2025 15:16:52
Module start 'layout'
Timing: Jan 18 2025 15:16:52
Module start 'content'
Timing: Jan 18 2025 15:16:53
Module end 'content'
Timing: Jan 18 2025 15:16:53
Script end

Main resources:

Total runtime1.0935 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.0054 588.1875152.6563
Module start 'layout' 0.00540.0043 740.843839.5078
Module start 'content' 0.00971.0823 780.3516435.3516
Module end 'content' 1.09200.0014 1,215.70318.4141
Script end 1.0934  1,224.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2903160.0002
Check MTime0.00130.1192160.0001
Mysql Total
Database connection0.00080.073010.0008
Mysqli_queries1.043295.4064540.0193
Looping result0.00050.0488520.0000
Template Total1.045795.620.5229
Template load0.00780.711620.0039
Template processing1.037994.920020.5190
Template load and register function0.00020.014610.0002
states
state_id_array0.00180.166610.0018
state_identifier_array0.00210.187620.0010
Override
Cache load0.00720.6543220.0003
Sytem overhead
Fetch class attribute can translate value0.00130.122210.0013
Fetch class attribute name0.00090.085020.0005
XML
Image XML parsing0.00020.014510.0002
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00110.1002100.0001
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs