Custom page attributes and search

Permalink
I have added several custom page attributes to the "locations" section of a site (basic stuff, address, services, phone, etc). When I created these page attributes I selected "Content included in 'Keyword Search'." However when I try searching for any of these with the search block no results are returned. I tried clearing the cache and re-running the site index maintenance job but neither seem to help. Any ideas? Thanks.

hursey013
 
Mnkras replied on at Permalink Reply
Mnkras
im not sure exactly what your saying, but unless the attributes are some how displayed in the page i do not believe that check box includes the attributes defined in the properties
hursey013 replied on at Permalink Reply
hursey013
Let me try and clear up what I'm asking, since for all I know I am using page attributes incorrectly.

In order to force a specific look for a page, I created a page type called "store". I gave that page type about a dozen attributes ranging from address, phone numbers, services and a photograph of the exterior. Those attributes are then being pulled into the page type using:
<?php echo $c->getCollectionAttributeValue('attr_name') ?>
To create the store page, I then add a new page with the "store" page type, fill out all the field I defined in the custom fields section, and I'm done.

So to answer your question - I am using the attributes within the actual page and the page is built out exactly as I would like. However, now if I try searching for anything contained on this store page, nothing is returned. Am I misusing page attributes, or is this expected behavior? Thanks for the quick response and help!
ScottC replied on at Permalink Reply
ScottC
you aren't wrong to assume that these should work that way, in fact that is how I also assumed they would work.

Unfortunately I had the same findings as yours, which is why the blog app has literally a raw sql query to match this stuff up right now.

I am not sure yet if the functionality and subsequent usability of these collectionattributekey => cID => value association maps has changed, but I am experiencing your same issues in 5.3.1.1, I am going to test out the beta after I am done here and see what's up.

-Scott
hursey013 replied on at Permalink Reply
hursey013
Thanks for the reply Scott - this is pretty unfortunate news. Do you have any suggestions for a workaround in the meantime? Basically a way to force a look, but also have it included in the search results?
fastcrash replied on at Permalink Reply
fastcrash
Bump! this happen to me too, any update now How-tos..
mesuva replied on at Permalink Reply
mesuva
I believe this side of things has been resolved in the more recent versions of c5, pretty sure from 5.4.1 onwards. I've got site searches on a few sites that use attributes and I haven't had to do anything special to get it working.

You need to make sure that your attributes have the checkbox 'Content included in sitewide page search index.' ticked for them to be searchable.

Go into the Dashboard, Pages and Themes, Attributes, click on the specific attribute and find the checkbox there.
fastcrash replied on at Permalink Reply
fastcrash
hai mesuva, thank for the hint. i already doing that, are u sure c55 can do that thing? advanced search?
i'm still observasing with c55,
you, i'm not fast thinker, just 1+1=??? give me some time.. :)

http://www.concrete5.org/community/forums/customizing_c5/hardcode-c...
mesuva replied on at Permalink Reply
mesuva
I'm positive.

Take this concrete5 for example:http://www.saba.org.au/
On that site if you search for my name: 'Ryan Hewitt', you'll get two pages come up in the search results. The first one you'll see has something highlighted, because it is just normal content.

The second result however, shows my business only because my name is stored in an attribute. All the details for each business are in attributes (all automatically put on the page, no content blocks).

HOWEVER!!
---------
I've found that the searches don't allow you to include additional characters like . or @. I think you can only search for things with letter, numbers and spaces. So searching for an email address or website isn't going to work. Maybe this has been fixed in 5.5?
fastcrash replied on at Permalink Reply
fastcrash
You are right pal, user attribut and page atribut different after all.
i add this real_name to user attribut and check Content included in user keyword search, and hope its find in result of search block.

but i'm wrong, the flow is not like that, i must add real_name to page attribut too, so search block can grab it.

is there a way to update through sql database? or i just add this real_name value to each page one by one via sitemap dashboard? i have been create 50 pages