How to search the exact word by Ezfind ?

Author Message

kingsun he

Wednesday 19 January 2011 7:36:03 pm

Hello, I'm using the ezfind extension. But I can't search the exact word. For example, when I search the text "consid", the article with word "considered" will be searched. How can I do some settings so that Ezfind can search the exact word?

Guillaume Kulakowski

Thursday 20 January 2011 4:53:19 am

What is your default search handler ([SearchHandler] / DefaultSearchHandler in ezfind.ini)? I have heuristic and if I search "Strasb" insted "Strasbourg", I have no response.

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

kingsun he

Thursday 20 January 2011 6:49:54 pm

My DefaultSearchHandler is heuristic too. So strange.

kingsun he

Thursday 20 January 2011 6:54:02 pm

I have set it to heuristic.

Paul Borgermans

Monday 07 February 2011 1:47:46 pm

What you see is the stemming in action which is enabled by default.

If you really want to turn this off, you need to edit the solr schema.xml file and remove the stemming step for the "text" type field.

Then re-index (as with any schema change) and you will only have matches of the exact term (still case insensitive and with accesnts removed)

Paul

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

Gaetano Giunta

Tuesday 08 February 2011 1:47:30 am

Also, if you just want to prevent some words to be stemmed, and not all of them (common case: the company name and its products), you can modify the protwords.txt configuration file. It's a list of words to which stemming is not applied.

Principal Consultant International Business
Member of the Community Project Board

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 21:09:14
Script start
Timing: Jan 30 2025 21:09:14
Module start 'layout'
Timing: Jan 30 2025 21:09:14
Module start 'content'
Timing: Jan 30 2025 21:09:14
Module end 'content'
Timing: Jan 30 2025 21:09:14
Script end

Main resources:

Total runtime0.0588 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.2813151.2266
Module start 'layout' 0.00540.0076 739.5078220.7266
Module start 'content' 0.01310.0440 960.23441,002.9297
Module end 'content' 0.05700.0018 1,963.164137.9766
Script end 0.0588  2,001.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00315.2061140.0002
Check MTime0.00121.9983140.0001
Mysql Total
Database connection0.00071.142210.0007
Mysqli_queries0.00559.355130.0018
Looping result0.00000.046210.0000
Template Total0.00122.110.0012
Template load0.00091.519410.0009
Template processing0.00030.545810.0003
Override
Cache load0.00060.997510.0006
General
dbfile0.020534.829880.0026
String conversion0.00000.019440.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