No search results? Possible fix...

Permalink 1 user found helpful
Let me describe the symptoms of my problem so you can see if they match yours...

1. Done everything mentioned onhttp://www.concrete5.org/documentation/general-topics/search/... and still no results from content

2. Only results appear to be from whole words in the URL of a page, not its content

3. Destination search page is setup correctly and simply shows URL-based results as in (2) or 'no results'

4. My content area is not called 'Main' or 'Main Content'.

Having become increasingly frustrated I resorted to searching the C5 directory for the string 'Main Content' which ocurred in 3 places, 2 of which are code, namely 'indexed_search.php' and 'database_indexed_search.php', both of which reside in the /concrete/libraries directory.

Lines 39 and 119 in indexed_search and database_indexed_search both create an array holding the values 'Main' and 'Main Content'. By adding my content area name to the database_indexed_search array and re-indexing the search from admin my search block now works.

Note it was only when I added it to the database_indexed_search as adding it to indexed_search still made no difference although you may find it needs to be in both files and it's at least consistent to do so. Note also I overrode both files by editing my own copies in /libraries.

Hope this helps others!

G

surefyre
 
digitmaster replied on at Permalink Reply
digitmaster
Hi,
a search on the forum could have been a help and frustration-avoided. I solved the issue on 23 of february.
http://www.concrete5.org/community/forums/customizing_c5/again-the-...

Cheers.
surefyre replied on at Permalink Reply
surefyre
No idea how I missed that, it does appear in the search results for 'search' after all!

Anyway it's fixed twice now ;o) So if I missed your post maybe others did and now they have double the chance of getting a result!

G
digitmaster replied on at Permalink Reply
digitmaster
Sure it could!
And it happens also for many other tips that one needs but that are hard to find.
The search engine here needs improvements.

Usually I use a combination of google hacks and the search on the forum here.

Bye.
Tony replied on at Permalink Reply
Tony
yeah, the search engine could be improved still, but the docs section should be getting a lot better too in the coming months, with tagging, and links to relating posts etc
Mnkras replied on at Permalink Reply
Mnkras
and i believe the search index was changed to a blacklist, so it doesn't index stuff like Header Nav