Problem with ezfind filter in search

Author Message

H-Works Agency

Friday 29 October 2010 2:54:38 am

Hello everyone,

I am still having a problem with ezfind on ezstring attribute. This time its not on facet value display but on facet filter results :

When i filter on a facet results are totally wrong caused by partial word search.

For exemple if i filter on "house music (50)" it will return every results containing "house" OR "music" leading to an unexpected number of results. How can this be avoided ?

If i quote the whole string it seems to work but is this the right move ?

Do i have to change DefaultSearchHandler or do i have to change the DataMapFilter['ezstring'] ? If yes to what value ?

Thanx in advance for any help.

EZP is Great

Paul Borgermans

Sunday 31 October 2010 1:07:19 pm

Indeed, you have to quote the string for the filter to behave corresponding to the facet counts

The default search handler does not relate to the filter queries, its always the Solr "standard" search handler for now .. which is very powerful (not only booleans, but also the full set of function queries, see http://wiki.apache.org/solr/SolrQuerySyntax for a start).

hth

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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

Main resources:

Total runtime0.6169 sec
Peak memory usage4,096.0000 KB
Database Queries56

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 589.1797152.6406
Module start 'layout' 0.00890.0087 741.820339.4844
Module start 'content' 0.01750.5981 781.3047531.8906
Module end 'content' 0.61560.0012 1,313.19538.1328
Script end 0.6169  1,321.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.7248160.0003
Check MTime0.00160.2591160.0001
Mysql Total
Database connection0.00110.173110.0011
Mysqli_queries0.560190.7858560.0100
Looping result0.00080.1315540.0000
Template Total0.566491.820.2832
Template load0.00370.600920.0019
Template processing0.562791.205720.2813
Template load and register function0.00010.016210.0001
states
state_id_array0.00130.206710.0013
state_identifier_array0.00090.140420.0004
Override
Cache load0.00280.4565170.0002
Sytem overhead
Fetch class attribute can translate value0.00070.118820.0004
Fetch class attribute name0.00200.323940.0005
XML
Image XML parsing0.00110.176420.0005
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00130.2184240.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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs