Forums / Setup & design / wildcards on eZ Find

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

eZ debug

Timing: Jan 18 2025 11:18:48
Script start
Timing: Jan 18 2025 11:18:48
Module start 'content'
Timing: Jan 18 2025 11:18:49
Module end 'content'
Timing: Jan 18 2025 11:18:49
Script end

Main resources:

Total runtime1.0549 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1328180.8438
Module start 'content' 0.00620.9042 769.9766673.8828
Module end 'content' 0.91040.1444 1,443.8594341.0703
Script end 1.0548  1,784.9297 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3657210.0002
Check MTime0.00150.1379210.0001
Mysql Total
Database connection0.00090.088610.0009
Mysqli_queries0.963291.30392100.0046
Looping result0.00250.23262080.0000
Template Total1.022496.920.5112
Template load0.00210.201120.0011
Template processing1.020296.712720.5101
Template load and register function0.00020.020610.0002
states
state_id_array0.00100.091110.0010
state_identifier_array0.00190.176020.0009
Override
Cache load0.00190.1778530.0000
Sytem overhead
Fetch class attribute can translate value0.00130.121550.0003
Fetch class attribute name0.00130.1249100.0001
XML
Image XML parsing0.00320.306650.0006
class_abstraction
Instantiating content class attribute0.00010.0049120.0000
General
dbfile0.00520.4943390.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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