Search Block Results

Permalink
Hello,

Spent most of the DAY working on this and it does not work for me?

Done all that was asked in the forums:- indexing, changing controller, etc.

If I search for more than one word in a sentence and they follow each other I get results.

If I try odd words that I know are in the content but do not follow each other I get no results.

So if visitors type in something that does not match exactly in page order they have no results?

Is there a way around this?

If not, then there is little point in having the search facility!

Have I got something wrong?

My client wont leave alone on this one!


Heres hoping someone knows something I don't..........

Steevb
 
Steevb replied on at Permalink Best Answer Reply
Steevb
This was literally driving me mad!

Has anybody else got this problem?

Does your search work with random typing?

I spent on and off close to 36 hours trying to get this to work!

Then it came to me!

look at other Concrete5 sites with the search facility plumbed in and see whose search box worked as I wanted.

Found one, type in something random and you get results, GREAT!

I don't why it works just yet, but it works.

I know going to laugh, but I'm not a developer and I was desperate!

Tried a cut & paste of the site code, blended it into my code.

Complete rubbish.

Found the Concrete5 version they are using.

Tried pasting that version controller.php and view.php.

Worse.

This morning another flash of inspiration, try uploading the complete search block?

Hallelujah!! It works.........

Tried the same thing on two other sites and it works.

Slight glitch is it wont quite pick and highlight sometimes, but then I'm trying to be really extreme with my searches.

All I care about is that I get a response on the page and NOT:

'There were no results found. Please try another keyword or phrase.'


Not sure how to use Chadstrat's code just yet. But at least my client should stop ringing me every two hours!

HAPPY DAYS!!


My secret? I used the search block in its entirety found in Concrete5 version - 5.4.0.5

BTW: I'm running 5.4.1.1