cancel
Showing results for 
Search instead for 
Did you mean: 

opensearch

xerox
Champ in-the-making
Champ in-the-making
I'm using Alfresco2.1

I'm trying to add other search engines(like described in the wiki)
I've put the following code in the web-scripts-config-custom
<engine label="Alfresco Open Source Talk" proxy="opentalk">
               <url type="application/rss+xml">
                  http://blogs.alfresco.com/opentalk/os-query?s={searchTerms}&itemstart={startIndex?}&itempage={startP...?}
               </url>
            </engine>
          <engine label="Yahoo UK News" proxy="yahooUKNews">
               <url type="application/rss+xml">
                  http://uk.news.search.yahoo.com/news/rss?p={searchTerms}
               </url>
            </engine>

            <engine label="Yahoo Search" proxy="yahoo">
               <url type="application/rss+xml">
                  http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query={search...?}
               </url>
            </engine>

I've restart my server and when I browse to alfresco and open the opensearch component, those engines are shown. But when I try to search with those engine it takes really long and than I get en error "object Required"
Can anyone help me?

friendly regards

Nick
18 REPLIES 18

mikef
Champ in-the-making
Champ in-the-making
Start by removing the yahoo searches. Do you get the same behaviour?

xerox
Champ in-the-making
Champ in-the-making
yes, still same behaviour.
really strange. Only the current alfresco respository is working, others not.
Another error I sometimes get, is a message box with the message :
"undefined = undefined"

finner
Champ in-the-making
Champ in-the-making
Hi Xerox,
Did you get the engines working ?
I copied your config without changing anything and it worked for me.

This is my web-api-config-custom.xml:

<alfresco-config>
   <config evaluator="string-compare" condition="OpenSearch">
      <opensearch>
         <engines>
       <engine label="Wikipedia Search" proxy="wikipedia">
               <url type="application/rss+xml">
http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query={search...?}
               </url>
            </engine>

            <engine label="Alfresco Open Source Talk" proxy="opentalk">
               <url type="application/rss+xml">
                  http://blogs.alfresco.com/opentalk/os-query?s={searchTerms}&itemstart={startIndex?}&itempage={startP...?}
               </url>
            </engine>
            <engine label="Yahoo UK News" proxy="yahooUKNews">
               <url type="application/rss+xml">
                  http://uk.news.search.yahoo.com/news/rss?p={searchTerms}
               </url>
            </engine>

            <engine label="Yahoo Search" proxy="yahoo">
               <url type="application/rss+xml">
http://api.search.yahoo.com/WebSearchService/rss/webSearch.xml?appid=yahoosearchwebrss&query={search...?}
               </url>
            </engine>           
         </engines>
      </opensearch>
   </config>
</alfresco-config>

I'm on Alfresco 2.1 (Community).
Is your configuration file in the tomcat/shared/alfresco/extensions folder ?
Does your XML contain any uncommented [host] or [port] references ?

Finner

xerox
Champ in-the-making
Champ in-the-making
How can I know if my engines are working?
Does I need to enable them somewhere else?

Is your configuration file in the tomcat/shared/alfresco/extensions folder ?
Yes, in the extension folder.

Does your XML contain any uncommented [host] or [port] references ?
No. exactly the same as your code example

it's really strange

thanx in advance

Nick

finner
Champ in-the-making
Champ in-the-making
Hi Nick,
What does this return?
http://<host>:<port>/alfresco/service/search/engines?type=all

Also - in the wiki it says :
When adding new search engines, the recommendation is to place them in:
/config/alfresco/extension/web-api-config-custom.xml

Try defining the engines in web-api-config-custom.xml and not the web-scripts…xml

xerox
Champ in-the-making
Champ in-the-making
this output:

Engine URL Type Response Format
Alfresco Keyword Search  Template URL  application/atom+xml 
Wikipedia Search  Template URL  application/rss+xml 
Alfresco Keyword Search  Template URL  application/rss+xml 
Yahoo Search  Template URL  application/rss+xml 
Alfresco Keyword Search  Template URL  text/html 
Alfresco Keyword Search  OpenSearch Description  application/opensearchdescription+xml 
Yahoo UK News  Template URL  application/rss+xml 
Alfresco Open Source Talk  Template URL  application/rss+xml

finner
Champ in-the-making
Champ in-the-making
Have you put the engine configs in web-api-config-custom.xml and removed from web-scripts-config-custom.xml. I haven't customised the web-scripts-config-custom.xml file.

What browser do you have ?

xerox
Champ in-the-making
Champ in-the-making
I've tried both…

explorer 6 and firefox 1.5.

I know you need explorer 7 and firefox 2 for doing a opensearch with your explorer self, but I taught for doing it from in alfresco , you didn't need those

Or am I wrong?

p.s thanx for your fast replies…

friendly regards,
Nick

finner
Champ in-the-making
Champ in-the-making