Search

Permalink 2 users found helpful
What does the Search functionality use for searching? I'm testing that on my site and when searching for certain words that exist both in block content, page names etc, I don't get any search results.

 
andrew replied on at Permalink Reply
andrew
But it doesn't always do the best job at it. We're trying to improve this. However we are using it on this site, with decent enough results.
ong replied on at Permalink Reply
ong
frz replied on at Permalink Reply
frz
there's also a character limit, i've been confused on sites we've built in the past in searching for a three character string only to realize later the index only looks for 4+..
jnichols437 replied on at Permalink Reply
I'm a bit thrown. As an example, I have a page with the word "equipment" in the a content block. When I search for this word, I get no results. Is search supposed to search every word listed on any page in the website?
Remo replied on at Permalink Reply
Remo
did you run the indexing job?
jnichols437 replied on at Permalink Reply
Didn't realize I needed to do that. When I try to go to the the Maintenance screen in the dashboard I get an error.

Fatal error: Cannot redeclare class GenerateSitemap in /home/content/j/n/i/jnichols437/html/concrete/jobs/generate_sitemap.php on line 99
jnichols437 replied on at Permalink Reply
Can anyone help me with the error posted above? My search functionality doesn't work at all.
Tony replied on at Permalink Reply
Tony
Normally I get this type of error when using require() instead of require_once, but it looks like the Job class that loads all the job types (/concrete/models/job.php), is already using require_once, at least in my installed version of concrete (you may want to check yours isn't using just require() anywhere). Apart from that, it's hard to tell without tracing the code. I'm guessing that it's happening in Job::getAvailableList(). Maybe try adding "return array()" at the start of that function to test that theory. Sorry I can't be of more help.
jnichols437 replied on at Permalink Reply
Well, I can try poking around. I've only been using C5 for a few weeks, I'm not sure if there are some specific files that I could try over-writing with the original install without messing up anything in my overall installation?
jnichols437 replied on at Permalink Reply
I opened the php file referenced in my error. Is this job that's run for the search engine indexing the same thing that controls the search functionality within the site itself? I thought someone else told me they were not.

'Generate the sitemap.xml file that search engines use to crawl your site.' from generate_sitemap.php
frz replied on at Permalink Reply
frz
yeah sitemap.xml is a file that google looks for when it spiders your site for content on its search...

the other job is an index c5 runs to power the search block.
jnichols437 replied on at Permalink Reply
So, what can I do to run/reset the search index for my site? It will only return results for what was on the site in the 1st week...anything after that, it does not find.
mtringal replied on at Permalink Reply
My search only returns results when the the search term can be found in the page name. Content isn't being indexed for some reason (and yes I have indexed the site ;-)


Marc
Styves replied on at Permalink Reply
Styves
As Marc, it's the same for me!
xGSTQ replied on at Permalink Reply
I just added the search block and in dirty great big red code it said "The search index does not appear to exist. This block will not function until the reindex job has been run at least once in the dashboard."

Where is that in the dashboard ? I cant seem to find it...

Thanks
synlag replied on at Permalink Reply
synlag
Goto
dashboard->maintaince and click on 'Run Checked'
neuromax replied on at Permalink Reply
I'm having issues with indexing, is taking hours just with the example pages... and the choose file/image requester locks up and I was thinking the two things are related.
neuromax replied on at Permalink Reply
I installed again from scratch and the indexing problem gone away. But I cannot still see the image/file requester content...
simpled replied on at Permalink Reply
Strange.
I have 16 pages.
Mainly Lorem ipsum text as demonstration in all pages/block

I ran the indexing in Maintenance, no problem.

Any terms I try to search on, as Lorem, or Lorem Ipsum, no results is returned whatsoever.

Even added "Lorem Ipsum" to Page Name, Description, meta etc...

No results.

Is the search working properly?
simpled replied on at Permalink Reply
Anybody else has the same problems as my post above?
synlag replied on at Permalink Reply
synlag
i had set the options in the search block to 'only beneath this page' not the entire website..
simpled replied on at Permalink Reply
Beneath means that any page that I want to be search need to be placed under the Search box?

I changed the function to "beneath" and still not get anything...

Can you explain the exact structure?
synlag replied on at Permalink Reply
synlag
means:

if a page acting as folder in sitemap (so it has one page ore more as child/s), only these pages are searched

switch to 'everywhere' this should work
simpled replied on at Permalink Reply
Back to the start.
Everywhere was switched on and nothing is found...
I am using latest version and haven't touched the code of the search block.
synlag replied on at Permalink Reply
synlag
k,

indexed, nothing changed -> must work

Please post this to bugs.

We're on it.
nlambson replied on at Permalink Reply
I too am trying to index a simple site, and the indexing seems to stall for hours, and never successfully indexes anything. Any idea why?
chlywly replied on at Permalink Reply
I'm having the exact same issue. Indexed the site search "everywhere" is on, but it's only finding words in the title and nowhere else :/ Latest version of Concrete.
agedman replied on at Permalink Reply
agedman
A little different for me. Indexes quickly, but doesn't match content text, only titles.
agedman replied on at Permalink Reply
agedman
I think I may be getting a clue on this...

In database_indexed_search.php, function getBodyContentFromPage($c) which is used to pull the content out of eligible blocks in eligible areas, the array $searchableAreaNames is empty on my system.

It looks like the function getSavedSearchabelAreas() is looking for a config section called 'SEARCH_INDEX_AREA_LIST', but on my site Config::get('SEARCH_INDEX_AREA_LIST') is returning an empty string.

I tried Config::save('SEARCH_INDEX_AREA_LIST', array('Main'), but got an ADODB exception... Hmm... I don't know how to save an array to the config.
agedman replied on at Permalink Reply
agedman
Ok, got it! I just did Config::save('SEARCH_INDEX_AREA_LIST',serialize(array('Main'))) then ran 'Index Search Engine' and now the search is working in my content in area Main.
Mnkras replied on at Permalink Reply
Mnkras
go to site.com/index.php/dashboard/sitemap/search/manage_index/

configure that there, there is a default value in either the base.php or app.php
agedman replied on at Permalink Reply
agedman
You are right as usual, Mnkras!! I didn't know about that -- it's pretty well-hidden...

Well, it was fun figuring it all out the hard way...

If anyone's interested, to get there via the dashboard, it's

Sitemap > Page Search > Setup Index (it's the tiny link above the 'Full Page Index' textbox)

By default it is set to 'Whitelist' so NO AREAS ARE INDEXED. That's why some of us were having trouble searching in the content blocks in Main.

Maybe for the next version, it would be good if at least the Main area was enabled by default...
rainmaker replied on at Permalink Reply
rainmaker
I have 5.4.1.1 which seems to have "Blacklist" as the default setting... I've tried everything and I still can't get anything to come up in search results. Re-Indexed multiple times, tried explicitly whitelisting my content areas... nothing is working.
rainmaker replied on at Permalink Reply
rainmaker
I found a solution! I guess it only works if you use only ONE word. This is a 5.4.1.1 bug.

Here's the solution:

http://nwlinux.com/blog/concrete5-search-only-functions-if-i-use-on...
benede replied on at Permalink Reply
benede
Nice one thanks. That is exactly what I was about to fix in a site of ours.

Ben
dihakz replied on at Permalink Reply
dihakz
You are an ABSOLUTE life saver!! Thank you so much for this. :-)