Pisearch 1.30

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Piratos

Pisearch 1.30

Post by Piratos »

Here you can download the fastes version of pisearch und the only searchengine for cmcms  with full function that exists until today.

http://dev.cmsmadesimple.org/projects/pisearch/

It can search in your visible contents and render automatically included modules or plugins.

You can see Pisearch in action here:

http://www.bea-heim.ch/index.php?page=Suche

http://www.chor-lesperance.de/
Last edited by Piratos on Wed Dec 07, 2005 10:13 am, edited 1 time in total.
roman
Forum Members
Forum Members
Posts: 77
Joined: Thu May 12, 2005 9:38 am
Location: slovakia

Re: Pisearch 1.30

Post by roman »

hi piratos, can you write narrowly HOW i can implement this plugin to CMSMS? running better to my plugin,  ;), but i have 2 problems:
1, i don't like have in one page search results and content of page, i tried to use in form send data to separate page, but it don't running correctly to me. i think other your contributions make CMSMS faster but this must be in every page...not
2,

Code: Select all

Warning: htmlentities(): charset `US-ASCII' not supported, assuming iso-8859-1 in /cms/plugins/function.pisearch.php on line 22
this error is with default encoding, also without default encoding in config.php. I have encoding utf=8 on this site.
Piratos

Re: Pisearch 1.30

Post by Piratos »

1. 

show the plugin help:

If you would like to show the searchresults in another page as the in the root,
you must insert a new line direct after the form tag.

The value must be the content_id or the content_alias of the preferred page.

Here a website who works with piserach and separated page for the results:

http://www.chor-lesperance.de/

An so it was made:

Code: Select all

<div id="search">

<form action="http://www.chor-lesperance.de/index.php" method="get">
<input type="hidden" name="page" value="Suchseite" />
<input type="text" value="" maxlength="50" size="8" name="pisearch" id="query_string" />
<input type="submit" value="Suchen" id="buttonSearch" />
</form>
</div>
2.
Warning: htmlentities(): charset `US-ASCII' not supported, assuming iso-8859-1 in /cms/plugins/function.pisearch.php on line 22
That is a return of your webserver - your default encoding do not response with your webserver, you must use the right value !

If you call phpinfo you can see what values are enabled:

Code: Select all

HTTP_ACCEPT_CHARSET 	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Last edited by Piratos on Wed Dec 07, 2005 12:28 pm, edited 1 time in total.
iNSiPiD

Re: Pisearch 1.30

Post by iNSiPiD »

Hi Piratos,

Before I get too excited, have you changed the code base on this at all? I still can't get the last version to work. It seems that News and also Calendar module somehow conflict with erros in the results page.  :'(

I have PHPDig for now but it doesn't spider the modules properly.

It would be great if Pisearch could build a fulltext index table for keywords as well then maybe you could use boolean search and different operators AND, OR, NOT, exact phrase etc.
Piratos

Re: Pisearch 1.30

Post by Piratos »

News and also Calendar
It works  in my installation with

News,
Calendar,
Kalender,
Pirss.
Pifaq
all menu modules and plugins  and all together.

The last version works with templates and you must copy this to tmp/templates.
No Template NO results - read the help function.

It was all the same as the prev version, but now with it is using a  template.

Code: Select all

a fulltext index table for keywords 
Pisearch needs no extra tables, there  are useless because i never know the modules or plugins are currently set and makes contents.  So pages must be rendered with smarty if there are smarty - delimiters  in a page.
If  i have an index table i never know if the modules or plugins are currently set or not.

actually pisearch is searching at all words and works with an AND function, in the first version it works with OR, but nobody want  to have that.

The latest version you can see in action here:

http://www.bea-heim.ch/index.php?page=Suche

This web is using a separated Searchpage and exluding seraching in module news.
Last edited by Piratos on Fri Dec 09, 2005 10:56 am, edited 1 time in total.
roman
Forum Members
Forum Members
Posts: 77
Joined: Thu May 12, 2005 9:38 am
Location: slovakia

Re: Pisearch 1.30

Post by roman »

Pisearch mudele worked for me ...only this 2lines error was before every result's. Nice work. But probably, if register_globals are off, your function don't can see parameter $config['default_encoding'] or something similar. support of utf-8 is enabled on this server.
Piratos

Re: Pisearch 1.30

Post by Piratos »

if register_globals are off, your function don't can see parameter $config['default_encoding']
No no  I work with register_globals = Off  - That and the CMS works.
only this 2lines error was before every result's.
That is a warning not an error but the warning comes if the settings in the config.php are not  be right  with you webserver.

See supported sets:


[attachment deleted by admin]
Piratos

New Pisearch 1.33

Post by Piratos »

This version is compatible with Adodb Lite Version 1.11 so it can run with Adodb AND Adodb Lite without changes.
Piratos

New Pisearch 1.34

Post by Piratos »

New Parameter template="your_template.tpl" - default is pisearch.
The original - template was in german - the tag - help in english
and this package comes with the french template pisearch_fr.tpl from Marc Varlet.
roman
Forum Members
Forum Members
Posts: 77
Joined: Thu May 12, 2005 9:38 am
Location: slovakia

Re: Pisearch 1.30

Post by roman »

Piratos wrote:
if register_globals are off, your function don't can see parameter $config['default_encoding']
No no I work with register_globals = Off - That and the CMS works.
only this 2lines error was before every result's.
That is a warning not an error but the warning comes if the settings in the config.php are not be right with you webserver.

See supported sets:
Thanks Piratos, was my wrong... i changed another config file from another server :D
iNSiPiD

Re: Pisearch 1.30

Post by iNSiPiD »

Hi Piratos,

I have some questions I hope you will like:

Can you add a parameter for summary="num_words" to reduce the size of the summary results?

Can you display the relevance of the results? For example, order them by % like Google does.

Maybe a parameter to sort by modification date would also be nice. :)

And is there some way to give page names and headings greater weight in the results? For example, if I search for Home and I have a page called Home, then it should receive extra weight in the results.

Thanks!  ;D
Piratos

Re: Pisearch 1.30

Post by Piratos »

Can you add a parameter for summary="num_words" to reduce the size of the summary results?
In Version 1.36

New Parameter maxresults="number" default is 100

A good way if someone is searching with trivial words.
Can you display the relevance of the results? For example, order them by % like Google does.
No - useless, pisearch works only with simple  strpos in the content  or if needed rendered with Smarty with AND  function.
strpos is the tested fastes way to search.
Maybe a parameter to sort by modification date would also be nice. Smiley
New Parameter orderby=1 or 2, default is false. It appends the querystring with
ORDER BY  modified_date ASC
or
ORDER BY  modified_date DESC

Attention: this makes the search slower, because there is no index of modified_date.
And is there some way to give page names and headings greater weight in the results?
You can use the css classes as defined in the template or you can edit the template as you wish.
For example, if I search for Home and I have a page called Home, then it should receive extra weight in the results.
No
The most people are using a separated searchresult - Page.
To do that i must load the pageinfo and compare the each result with the actually page.
Pisearch is optimized for speed

Pisearch 1.36 is ready
magicpio
Forum Members
Forum Members
Posts: 30
Joined: Mon Dec 05, 2005 7:54 pm

Re: Pisearch 1.30

Post by magicpio »

Hello Piratos,

I know that Pisearch is optimised for speed. However, I'd like to ask whether it is / could be possible to
includes file names (e.g. of images) in the search and generate a link to the appropriate page or image in the results page.

Regards
magicpio
Piratos

Re: Pisearch 1.30

Post by Piratos »

Pisearch is using the php function strip_tags to kill html tags, so it has a clean text to search.
If i set an image link as example:

Code: Select all

This is one text and now an image comes<img width="1600" height="1200" src="uploads/images/IMG_0014.JPG" alt="Inge" /> end of image
This is the text to search:

Code: Select all

This is one text and now an image comes end of image.
You see, so pisearch can never find something within such a tag.

But - strip_tags can be used with a second parameter -

strip_tags ( string str [, string allowable_tags])

So in version 1.37 a new parameter was enabled

imgtag

with {pisearch imgtag='1'}

pisearch will find filenames of pictures or alt ,but in the output of the searchresults the complete link may be broken because pisearch makes a cut in the sample-text of the page without controlling the end of the tag.

Pisearch 1.37 is ready
westis

Re: Pisearch 1.30

Post by westis »

Hi Piratos,

I don't know if you have a template in English yet, but here is one if you want to add it to future releases.

There is a minor typo in the Help. It says , that is missing the = in type="hidden".


I don't get any results from the News module, when the News module is in the template. Do I need to add a parameter for that? Also, I don't get any results from the Gastbuch module, but maybe that is not supported? Or has it to do with encoding somehow?

The site is www.kisima.org/cmsmadesimple/

Thanks!





[attachment deleted by admin]
Last edited by westis on Wed Dec 21, 2005 8:56 pm, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”