21
kerkyra
Re: Xoops Search - A Better Implementation?
  • 2007/8/16 10:11

  • kerkyra

  • Just can't stay away

  • Posts: 553

  • Since: 2005/2/14


Hi, any links to the patch?
whttp://www.guidemap.gr - Beta is out...

22
rlankford
Re: Xoops Search - A Better Implementation?
  • 2007/8/16 11:46

  • rlankford

  • Not too shy to talk

  • Posts: 158

  • Since: 2004/8/27


You can get the proposed patch by clicking here.

This is from the readme.txt file in the patch:

Quote:

Search Patch for XOOPS 2.0.16

-- rlankford --

2007/8/15

-----------------------

Patch assembled and submitted for XOOPS Core inclusion by rlankford at the request of marcan. Please see this post for more information:

https://xoops.org/modules/newbb/viewtopic.php?topic_id=60067&viewmode=flat&order=ASC&start=10#forumpost269844

-----------------------

To test this patch:

1) Before actually installing Xoops, unzip the files in this zip file and overwrite the files in your 'xoops' directory (the root of Xoops).
2) Install XOOPS as normal.
3) Verify search preferences in the XOOPS admin panel (three new preferences added by the patch).
4) Exercise the search engine on Xoops. Be sure to try both the shallow (the way it always has been) and deep (slower, but more information presented) search methods...

-----------------------

Changes Made:

1) \search.php -- Modest rewrite of the entire search page to support expanded functionality.
2) \include\searchform.php -- file no longer sends HTML output directly to screen. Rather, the render method now returns the HTML output so that it can be sent to the new search Smarty template instead.
3) images\search\* -- a series of graphics files called by the new search template.
4) \modules\system\xoops_version.php -- Search template definition added.
5) \modules\system\templates\system_search.html -- New system search Smarty template used by search.php for rendering HTML output.
6) \install\index.php -- Added 3 new configuration settings.
7) \install\makedata.php -- Added 3 new configuration settings.
8) \modules\system\language\english\admin\preferences.php -- defined several strings used by the new configuration settings.


This is from the description text associated with the download at sourceforge:

Quote:

This patch does the following:

1) It splits out presentation from search.php into a new search Smarty
template. This allows users of XOOPS to alter the appearance of their
search pages via the template without having to know the gory details of
the search process.

2) It creates the concept of 'deep' searching and 'shallow' searching.

Shallow searching exhibits the behavior that Xoops' search has always
exhibited. Namely, the initial search results page only searches for a few
hits in each module and presents those hits on a module-by-module basis.
The user cannot determine how many results are actually to be found in any
given module without drilling down into the hits for that module.

Deep searching, on the other hand, determines the number of hits for every
module. The initial search page still groups the hits by module (and still
limits those shown to a small number), but the user immediately sees how
many total hits are available. Drilling down into the results for a given
module then displays a 'page nav' interface instead of the 'next/previous'
nav buttons.

3) The initial search page sorts the modules by number of hits returned.
Modules with fewer hits are oriented toward the bottom of the page.


Please remember that this patch hasn't been thoroughly tested nor accepted yet for inclusion into the XOOPS core. But feel free to play around with it if you think you can get some use from it!

23
jeffgr
Re: Xoops Search - A Better Implementation?
  • 2007/9/22 15:38

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


I would like to implement this patch into an existing site, and not a new XOOPS installation.

The patch seem to be set up for new XOOPS installs.

How can I add the required tables etc, to my current database. I tried to reverse-engineer "makedata.php", to get the MySQL commands, but it didn't work. Does anyone have any ideas?

Thanks!

jeffgr

24
jayjay
Re: Xoops Search - A Better Implementation?
  • 2007/10/16 13:31

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Hi everybody!

This may be a tad off-topic, but posting it here anyway.

I was wondering if somebody had hacked the search function to allow searching through synonyms or descriptions. Let me clarify with an example:

I type in 'restaurant', but I might also be interested in a 'tavern', 'cafe' or whatever. It would be nice if we were able to make a keyword list in XOOPS and make the search function display additional pages based on this list in the search results.

Has anyone done this? Is this possible? It's a bit like taxonomies-lite

25
nachenko
Re: Xoops Search - A Better Implementation?
  • 2007/10/16 13:58

  • nachenko

  • Quite a regular

  • Posts: 356

  • Since: 2005/1/18


I use a search module developed by
Dan Musil and Jirka Vrba (http://www.qcm.cz)

It's just a modularized copy of the search engine, modified to use Smarty templates (oh, yes!), so you can tune looking and working without modyfing the core.

It's old, but still recommended. I think it' a good starting point for anyone that wants to improve the search engine. Instead of hacking the core, you just work on a module that can be removed at any time.

NOTICE: old version had a bug. I send them the fix, but don't know if they released a new version with the fix.

26
jayjay
Re: Xoops Search - A Better Implementation?
  • 2007/10/17 6:40

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


Quote:

nachenko wrote:
I use a search module developed by
Dan Musil and Jirka Vrba (http://www.qcm.cz)

It's just a modularized copy of the search engine, modified to use Smarty templates (oh, yes!), so you can tune looking and working without modyfing the core.

It's old, but still recommended. I think it' a good starting point for anyone that wants to improve the search engine. Instead of hacking the core, you just work on a module that can be removed at any time.

NOTICE: old version had a bug. I send them the fix, but don't know if they released a new version with the fix.


Hi nachenko!

Could you post this bug-fixed version in the module repository? This way everyone can benefit of it.

Thanks for the tip btw!

27
jayjay
Re: Xoops Search - A Better Implementation?
  • 2007/10/20 15:26

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


@jeffgr

Simple! You can do this:
insert into prefix_config values (9305'enable_deep_search''_MD_AM_DODEEPSEARCH''1''_MD_AM_DODEEPSEARCHDSC''yesno''int'0)
insert into prefix_config values (9405'num_shallow_search''_MD_AM_NUMINITSRCHRSLTS''5''_MD_AM_NUMINITSRCHRSLTSDSC''textbox''int'1)
insert into prefix_config values (9505'num_module_search''_MD_AM_NUMMDLSRCHRESULTS''20''_MD_AM_NUMMDLSRCHRESULTSDSC''textbox''int'2)


You have to change 'prefix' of course.

I tried the search patch and it's very promising. Too bad I had a problem with the page_nav not working. When I click 'next' when scrolling through module results, it will change the search numbers in front of the results (eg. 21-40) but not the search results themselves.

Switched back to old-school search

28
jayjay
Re: Xoops Search - A Better Implementation?
  • 2007/10/22 12:28

  • jayjay

  • Not too shy to talk

  • Posts: 175

  • Since: 2003/9/10


I was also wondering if XOOPS search could be taught to ignore typo's like 'the cribsµ' instead of 'the cribs'. This typo is very common on azerty-keyboards (don't know 'bout qwerty). Could this be done?

29
Shine
Re: Xoops Search - A Better Implementation?
  • 2007/10/31 8:54

  • Shine

  • Just can't stay away

  • Posts: 822

  • Since: 2002/7/22


One heck of a search hack/patch.
Has this already been applied to the xoopscore 2.018 yet?

It would be sad to see this lost and leave it just as a hack/patch

30
mortuk
Re: Xoops Search - A Better Implementation?
  • 2007/10/31 11:42

  • mortuk

  • Not too shy to talk

  • Posts: 122

  • Since: 2005/12/13


It shuld go on 2.0.something at least

how to add this on XOOPS hack module??

Login

Who's Online

332 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 332


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits