Pisearch 1.30
Pisearch 1.30
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/
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.
Re: Pisearch 1.30
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,
this error is with default encoding, also without default encoding in config.php. I have encoding utf=8 on this site.

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
Re: Pisearch 1.30
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:
2.
If you call phpinfo you can see what values are enabled:
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>
That is a return of your webserver - your default encoding do not response with your webserver, you must use the right value !Warning: htmlentities(): charset `US-ASCII' not supported, assuming iso-8859-1 in /cms/plugins/function.pisearch.php on line 22
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.
Re: Pisearch 1.30
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.
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.
Re: Pisearch 1.30
It works in my installation withNews and also Calendar
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
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.
Re: Pisearch 1.30
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.
Re: Pisearch 1.30
No no I work with register_globals = Off - That and the CMS works.if register_globals are off, your function don't can see parameter $config['default_encoding']
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.only this 2lines error was before every result's.
See supported sets:
[attachment deleted by admin]
New Pisearch 1.33
This version is compatible with Adodb Lite Version 1.11 so it can run with Adodb AND Adodb Lite without changes.
New Pisearch 1.34
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.
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.
Re: Pisearch 1.30
Thanks Piratos, was my wrong... i changed another config file from another serverPiratos wrote:No no I work with register_globals = Off - That and the CMS works.if register_globals are off, your function don't can see parameter $config['default_encoding']
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.only this 2lines error was before every result's.
See supported sets:

Re: Pisearch 1.30
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!
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!

Re: Pisearch 1.30
In Version 1.36Can you add a parameter for summary="num_words" to reduce the size of the summary results?
New Parameter maxresults="number" default is 100
A good way if someone is searching with trivial words.
No - useless, pisearch works only with simple strpos in the content or if needed rendered with Smarty with AND function.Can you display the relevance of the results? For example, order them by % like Google does.
strpos is the tested fastes way to search.
New Parameter orderby=1 or 2, default is false. It appends the querystring withMaybe a parameter to sort by modification date would also be nice. Smiley
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.
You can use the css classes as defined in the template or you can edit the template as you wish.And is there some way to give page names and headings greater weight in the results?
NoFor example, if I search for Home and I have a page called Home, then it should receive extra weight in the results.
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
Re: Pisearch 1.30
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
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
Re: Pisearch 1.30
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:
This is the text to search:
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
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
Code: Select all
This is one text and now an image comes end of image.
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
Re: Pisearch 1.30
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]
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.