wildcards on eZ Find

Author Message

Lukasz Piech

Wednesday 24 October 2007 1:25:07 am

Hi

Can me stupid but i cannot figure it out - how to use wildcards in eZ Find, i.e when i want to search for my surname i now have to search for Piech but i would like to search for Piec* or *iech or whatever

Is this possible?

Lukasz

Paul Borgermans

Wednesday 24 October 2007 1:57:30 am

Hi Lukasz

This is not yet possible. In a future release, we will enable the "standard" request handler from the Solr backend, so full boolean, wildcard and fuzzy searches will be possible then.

Paul

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

Lukasz Piech

Wednesday 24 October 2007 9:39:07 am

thanks.
Could you therefore suggest another solution for me? I am about to design a Knowedge Base system in existing eZ intalation. To do that i will create content classes:
* Solution
* How to article
* Patch

etc, each with Facts, Symptoms, Goals, Fixes, Notes, all searchable.
I would also like (buut not necessarily) to implement a search logics and weighting (symptoms more important than notes etc).

To do that I would need a good search engine with
* boolean
*wildcards
* business logic described above

is there a search engine for ez that could do that?

thanks

Kåre Køhler Høvik

Thursday 25 October 2007 1:04:29 am

Hi

If you'd like to see new functionality included in eZ Find, please take a look here : http://ez.no/ezfind/contributing , and subscribe to our mailing list : http://ez.no/ezfind/mailing_lists

We may also develop this feature for you through our professional services. If that's interesting, please contact us here : http://ez.no/company/contact

Kåre Høvik

Fredrik Ardmar

Saturday 19 January 2008 9:04:54 pm

Hi

You might also want to try to use the q.alt parameter instead of the normal q parameter.
That allows you to go around the limitations to the dismax handler and access for example wildcard searches.You can also get fuzzy search by using "~". But be a bit careful cause using .alt might also affect other parts of the search query. For example you wont have highlighted results. But in general it should work.

Now the search looks like this is ezsolr.php:

'q' =>$searchText,

Try to change this to for example

'q.alt' =>$searchText.'*'

Not sure if its the solution your looking for but might work until the standard request handler is available.

http://www.areadigital.org

Custom google maps with eZ Publish

http://www.meresverige.dk
http://dsbfirst.meresverige.dk

Paul Borgermans

Sunday 20 January 2008 10:41:04 am

About the <b>q.alt</b> parameter:

This is mainly meant for queries where the filters (with sorting parameters) are used, and then it is most useful for using the facet parameters.

Indeed, highlighting won't work as this takes the keywords specified in the <b>q</b> parameter

Cheers
Paul

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

Fredrik Ardmar

Sunday 20 January 2008 5:05:36 pm

Hi Paul

Do agree this is not a pretty fix. You have any better, easier solution if one needs to have a simple wildcard search with the dismax handler? If I can get the highlighting to work it would be even better:)

F

http://www.areadigital.org

Custom google maps with eZ Publish

http://www.meresverige.dk
http://dsbfirst.meresverige.dk

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

Main resources:

Total runtime1.2976 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 589.0391152.6250
Module start 'layout' 0.00900.0034 741.664139.4453
Module start 'content' 0.01231.2839 781.1094668.8047
Module end 'content' 1.29620.0014 1,449.914120.1719
Script end 1.2976  1,470.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2718160.0002
Check MTime0.00140.1083160.0001
Mysql Total
Database connection0.00200.155910.0020
Mysqli_queries1.218293.8783730.0167
Looping result0.00100.0737710.0000
Template Total1.258197.020.6291
Template load0.00230.176920.0011
Template processing1.255896.775020.6279
Template load and register function0.00040.027410.0004
states
state_id_array0.00090.066610.0009
state_identifier_array0.00140.107620.0007
Override
Cache load0.00200.1563530.0000
Sytem overhead
Fetch class attribute can translate value0.00070.050940.0002
Fetch class attribute name0.00120.0943100.0001
XML
Image XML parsing0.00350.271740.0009
class_abstraction
Instantiating content class attribute0.00000.0018120.0000
General
dbfile0.00270.2105280.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs