Share » Forums » Developer » Searching with AnyWordSearchText

Searching with AnyWordSearchText

Searching with AnyWordSearchText

Thursday 15 July 2010 3:20:24 am - 6 replies

Author Message

Nicolas Pastorino

Thursday 15 July 2010 3:58:21 am

Hi Jean-Luc,

Not having dug into the ezsearch code, it sounds like an empty search feature to me, where filters only (class, subtree) restrict the result set. Anyways, you should probably consider eZ Find if not already the case, where empty searches work very fine and are way better performing than the default search plug-in.

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 4:07:36 am

Thanks Nicolas.

I actually tried to install ezfind on my local, but the re-indexing search script is too long... Do you confirm me that using AnyWordSearchText in ezfind extension does work ? Because I don't find it on php code, and it is still commented on ezfind advanced search.tpl.

http://www.acidre.com

Nicolas Pastorino

Thursday 15 July 2010 4:20:11 am

Hi again Jean-Luc,

Well, i was not stating that AnyWordSearchText is actually working with eZ Find, given that i do not know what the initial intent was for this parameter. Assuming that this allows for an empty search, i simply suggested to go for eZ Find which supports the empty search feature in a more efficient fashion.

As to your issue with eZ Find, i recommend to read this tutorial, giving a tip to solve your specific issue. More generally, the series of three tutorials about Advanced Development with eZ Find is a must-read :

  1. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-1-datatypes-in-solr-and-ez-find
  2. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-2-indexing-additional-fields-in-solr
  3. http://share.ez.no/tutorials/ez-publish/advanced-development-with-ez-find-part-3-leveraging-the-solr-syntax

But could you let us know what you were trying to achieve when you stumbled upon the AnyWordSearchText parameter ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 4:41:46 am

Hi Nicolas,

Actually I do know those tutorials on eZ Find. Using eZ Find or not is not my problem. Let me explain by an example my need to use this AnyWordSearchText input :

  • If I search on "fetch content search" words, I need to return N results that match 1 of those 3 words.
  • If I search on "fetch content search ezfind" words, it then should return more than N results.

I hope this is clear, thanks !

http://www.acidre.com

Nicolas Pastorino

Thursday 15 July 2010 12:12:04 pm

Hi Jean-Luc,

From your example, it seems like you simply would like that the default search operator is OR, instead of AND. This is so by default with eZ Find, but unfortunately not with eZ's default search engine. In short, when using eZ Find you won't even need to bother about AnyWordSearchText for achieving the described example.

Hope this helped :)
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Jean-Luc Nguyen

Thursday 15 July 2010 1:05:20 pm

This is exactly the info I needed. Thanks a lot Nicolas !

http://www.acidre.com

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu