Welcome Guest, Not a member yet? Register   Sign In
MeNeedz Search
#21

[eluser]davidbehler[/eluser]
Ok, I think extensive to provide tests for bigger libraries like this one. But, to show my good will, I have created 2 examples on how to put this library to use and by doing this found some possible bugs that I removed while being at it.

Example 1: http://www.davidbehler.de/projects/menee.../example_1
Example 2: http://www.davidbehler.de/projects/menee.../example_2

The updated library can be downloaded here: http://davidbehler.de/download/search.rar

I hope that's kinda what you were looking for.
#22

[eluser]hugle[/eluser]
[quote author="waldmeister" date="1235520524"]Ok, I think extensive to provide tests for bigger libraries like this one. But, to show my good will, I have created 2 examples on how to put this library to use and by doing this found some possible bugs that I removed while being at it.

Example 1: http://www.davidbehler.de/search/index.p.../example_1
Example 2: http://www.davidbehler.de/search/index.p.../example_2

The updated library can be downloaded here: http://davidbehler.de/download/search.rar

I hope that's kinda what you were looking for.[/quote]

Hello.

I came to search question again, and seems that search.rar does not contain example files.
I thought it does containt, now the example links are also dead, can you re-upload them or smth like that ?

THanks and sorry for any inconvenience,
Jaroslav
#23

[eluser]davidbehler[/eluser]
Sorry, I moved some of my stuff and forgot about the examples.
They are back up!

Have fun Smile
#24

[eluser]jakeoh[/eluser]
There's a database error when accessing any of the examples... did your db structure change?
#25

[eluser]davidbehler[/eluser]
I'm afraid so...
I will setup a new database to make the tests usable again
#26

[eluser]jakeoh[/eluser]
In the meantime maybe you can help me.

I installed everything and the search is performed but without a WHERE clause. I have an input field that is posted from my page:

Code:
<form id="search_form" action="<?php echo base_url() ?>index.php/test_search" method="post"><input type="text" id="search_field" name="search_field" class="cleardefault" value="Recherche" /></form>

The corresponding search_post_where in the search config file is set as this:

Code:
'search_post_where' => array( //define additional where clauses depending on the fields the user submitted
                                                        array(
                                                                'post_field' => 'search_field', // name of the field submitted
                                                                'db_column' => 'completext', // name of the column used to compare with the value of the post field
                                                                'operator' => 'LIKE' // operator used for comparision, possible values are all common operators in mysql including LIKE and MATCH (for fulltext search)
                                                               ),
                                                ),
In my "test_search" controller, I got the following lines:
Code:
...
$data["search_results"] = $this->search->perform('site_search', 0, 25);
        $this->load->view('test_search',$data);
...
When I output the search results on my View, it seems everything ID is returned, no matter what I entered in the input field.

What did I do wrong?
#27

[eluser]jakeoh[/eluser]
OK I get it, I had commented the "Order by" settings in the search config for my initial tests.
#28

[eluser]ravi kiran[/eluser]
Can I get the examples? Example links are no more working.
#29

[eluser]davidbehler[/eluser]
Should be working again:

http://www.davidbehler.de/projects/menee.../example_1
http://www.davidbehler.de/projects/menee.../example_2
#30

[eluser]Unknown[/eluser]
Is there a way to save the number of times 'keyword' has been searched?
I need that to combine this search library with your cloud library.

I would like to display: TOP Searched for this Week/Month in a Cloud Style.

What is the best way to do this?




Theme © iAndrew 2016 - Forum software by © MyBB