Loading...
 
Skip to main content

Features / Usability


Search Results tiki-parsed

posts: 80 Austria

Hallo!

Finally i managed to update the search results page so that the results are parsed (displayed as in wiki pages, almost no syntax visible).
Please see attached Screenshot.

  • Working:
    • ALL ))Single-Line(( formatting and PLUGINS (Headers, Bold,... USERINFO Plugin, PING Plugin...)
    • tiki-Tables and FANCYTABLEs are working without extended formatting like width, tablewidth,...

  • Known issues:
    • In some cases lines are displayed twice.
    • Multiline PLUGINS may not work correctly (you can replace linebreaks with triple %).
    • Multiline Formatting may not be displayed correctly (you can replace linebreaks with triple %😀).
    • Fancytables may be displayed with tiki-table style since the header may be cut off.
    • SQL and WikiPluginsDb WikiPluginsDbTutorial Plugin may not work correctly, depending on your use of the Plugins and the search query. I have usually no problems, since i try to keep all this within one line (no linebreaks).


Basically it's based on a modification of lib/search/searchlib.php and searchindex.tpl
I try to attach a textfile wchich gives you an idea how it's done.

BTW is the search intended to be updated for 1.10?

If you are interested i'll post the modified files. But the modifications are only based on 1.9.7. and features like Blogs, Directory,... are missing because we dont use them. I'm thinking about putting the modifications into an extra function so you only have to chage one line in each find_exact_... function, but i've not done it yet.
updated attachments to PowerResult2.txt
Greetings,
Torpedro

posts: 1817 Catalan Countries

Hi Torpedro:

Thanks for contributing your code to the community! 😊

Search feature is something that needs improvement, indeed, and your work is a step forward.

Why not adding that (when finished and bug fixed) to the cvs code, so that it gets integrated within main tiki from next version onwards?

...just in case, you can add a optional check box at the "Admin > search" to enable users select what type of search results they wish to see: either plain code (as it is right now) or wiki parsed results (as you did).

Btw, did you kknow that some people plan to improve tiki a bit before 198 release? See TikiFest198

Moreover, did you manage to make that 2-word searches which result in the 2 words found become higher in the results list than pages with the single word found? (boolean search) I mean, in your screenshot, you found "unix_vi" page first, when searching the 2 words "unix vi". Did you have any other pages with the word unix or vi alone?

Easy Boolean Search IS REALLY NEEDED in Tiki (and I wonder why no coder could make this happen in the main tiki code yet...)

Cheers, and thanks again for your work

Xavi

posts: 80 Austria

> Hi Torpedro:
>
> Thanks for contributing your code to the community! 😊
>
> Search feature is something that needs improvement, indeed, and your work is a step forward.

Thank you! Have you tried it? Is my explanation missing something?
You should try with making a copy of the original files and modify the renamed copy, so the useres can use the search during integration.

> Why not adding that (when finished and bug fixed) to the cvs code, so that it gets integrated within main tiki from next version onwards?

I'm not familiar enough with CVS to do this myself.

> ...just in case, you can add a optional check box at the "Admin > search" to enable users select what type of search results they wish to see: either plain code (as it is right now) or wiki parsed results (as you did).

We would have to intorduce a new Tiki wide, or user properties variable. I think no ordinary user is interested in viewing search results in tiki-syntax code. Please correct me should i see this wrong 😂

> Btw, did you kknow that some people plan to improve tiki a bit before 198 release? See TikiFest198
>
> Moreover, did you manage to make that 2-word searches which result in the 2 words found become higher in the results list than pages with the single word found? (boolean search) I mean, in your screenshot, you found "unix_vi" page first, when searching the 2 words "unix vi". Did you have any other pages with the word unix or vi alone?
> Easy Boolean Search IS REALLY NEEDED in Tiki (and I wonder why no coder could make this happen in the main tiki code yet...)


I only modified the output so far.

> Cheers, and thanks again for your work
>
> Xavi
>

Thank you for your comment!