eZ Find and spellcheck

Author Message

Philippe VINCENT-ROYOL

Tuesday 21 June 2011 3:58:07 am

Hi guys,

  I'm using eZ 4.1 and eZ Find 2.3. I would like to control spellcheking result : have a suggestion which have results. 

For example: we search "percussions". By default, eZ find suggest me "percussion" which have no result. If i search "percussion", eZ Find suggest me "repercussion" which have results. Better way would be, when you search "percussions" suggest me "repercussion" because we have results !

Is it possible to solr to control result suggestion before showing it on website ?

Cheers

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Paul Borgermans

Tuesday 21 June 2011 6:05:27 am

The version of Solr in eZ Find 2.3 does not allow for sophisticated tuning (newer releases do, as well as some Solr non-default contributions).

You could tweak solrconf.xml with the following parameters for the spell check component, but I doubt it will matter much (try out different values):

<str name="accuracy">0.8</str>


<float name="thresholdTokenFrequency">.005</float>

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

Philippe VINCENT-ROYOL

Tuesday 21 June 2011 7:45:39 am

Thanks Paul,

I can't upgrade solr and ezfind due to a limitation we have.

So i ll try your tips, else i ll propose a spellcheck dictionnary they ll update.. 

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

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 30 2025 00:44:39
Script start
Timing: Jan 30 2025 00:44:39
Module start 'layout'
Timing: Jan 30 2025 00:44:39
Module start 'content'
Timing: Jan 30 2025 00:44:39
Module end 'content'
Timing: Jan 30 2025 00:44:39
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1250151.2109
Module start 'layout' 0.00470.0018 739.335936.6563
Module start 'content' 0.00650.0067 775.992294.1719
Module end 'content' 0.01310.0024 870.164133.9766
Script end 0.0156  904.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.3519140.0002
Check MTime0.00127.4079140.0001
Mysql Total
Database connection0.00084.863310.0008
Mysqli_queries0.001610.487930.0005
Looping result0.00000.064110.0000
Template Total0.001811.510.0018
Template load0.00149.015710.0014
Template processing0.00042.475910.0004
Override
Cache load0.00106.367510.0010
General
dbfile0.002415.380280.0003
String conversion0.00000.039740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs