cancel
Showing results for 
Search instead for 
Did you mean: 

WCM and Search

iapilgrim
Champ in-the-making
Champ in-the-making
Hi all,
I've referenced XMLMetadata Extractor sample. I uncomment wcm-xml-metadata-extracter-context.xml in Alfresco extension. Then I added the sample file into a web project and clicked 'view-detail'. OK, it  extracted title, description,author well. Next I used simple-search script in the website framework to test search.It worked well too. But my goal is use advanced search. Ex, I want to search in title or author or description…. Can you tell me how to achieve it?
I found in the mapping file these properties
namespace.prefix.fm=http://www.alfresco.org/model/forum/1.0
The prefix fm behaves like type, isn't it? that means I can query like this
var luceneStr = "TYPE:\"{http://www.alfresco.org/model/forum/1.0}fm\""
But It throws error message when I used it.
In web project I have 2 web forms article and news for example. So I need 2 xml extractor and 2 namespace prefix, right? Then In my site, If I allow user to search no matter what the content is in article or news, I must use combined query, right?
Hope these guys help me
Thanks,
Van
1 REPLY 1

andy
Champ on-the-rise
Champ on-the-rise
Hi

I am not too sure about this area , but

namespace.prefix.fm=http://www.alfresco.org/model/forum/1.0

is defining a prefix for a namesoace, no more.

Into which properties does your metadata extractor put its information?
What types and aspects does the node have?

If you have extracted the data into common alfresco properties you would build the queries exactly as before.

Are you using advanced search or writing your own lucene queries?

Andy