cancel
Showing results for 
Search instead for 
Did you mean: 

How to seach in internet using alfresco's opensearch feature

javauser007
Champ in-the-making
Champ in-the-making
Hi Team,
thanks for ur help.
I read an article http://wiki.alfresco.com/wiki/OpenSearchwhich represents that we can search the document throughout internet using alfresco's opensearch.
But i didn;t found anything related to this feature in wiki. Simply wiki explains me to configuring the Remote alfresco repository.
By using wiki i'm configured to search in another alfresco repository and it is working fine.

Now i want to search throughout internet using alfresco's open search like google.
Any syntax is useful.
I just added the following peace of code to web-scripts-config-custom.xml
But it is not working. even this option is not appearing on the opensearch.

<engine label="Google Search" proxy="remote">
               <url type="application/atom+xml">
                 
               <url type="application/atom+xml">
                     http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
               </url>
               <url type="application/rss+xml">
                     http://www.google.co.in/search?hl=en&q={searchTerms}&btnG=Google+Search&meta=&aq=f&oq=
               </url>
         
         </engine>

The following is the error which i'm getting here.
kipped for source: classpath:alfresco/extension/web-scripts-config-custom.xml'
org.alfresco.config.ConfigException: Failed to parse config stream
        at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
177)
        at org.alfresco.config.BaseConfigService.appendConfig(BaseConfigService.
java:255)
        at org.alfresco.config.BaseConfigService.parse(BaseConfigService.java:28
5)
        at org.alfresco.config.xml.XMLConfigService.initConfig(XMLConfigService.
java:111)
        at org.alfresco.config.BaseConfigService.init(BaseConfigService.java:96)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1240)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1205)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getOb
ject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistr
y.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:248)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:160)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:247)
        at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:796)
        at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:592)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:349)
        at org.springframework.web.context.ContextLoader.createWebApplicationCon
text(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationConte
xt(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitiali
zed(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.dom4j.DocumentException: Error on line 51 of document  : The refe
rence to entity "q" must end with the ';' delimiter. Nested exception: The refer
ence to entity "q" must end with the ';' delimiter.
        at org.dom4j.io.SAXReader.read(SAXReader.java:482)
        at org.dom4j.io.SAXReader.read(SAXReader.java:343)
        at org.alfresco.config.xml.XMLConfigService.parse(XMLConfigService.java:
144)
        … 47 more


Thank you for ur support.
12 REPLIES 12

javauser007
Champ in-the-making
Champ in-the-making
Hi team,
can u have a look into above or the following link.

http://forums.alfresco.com/en/viewtopic.php?f=10&t=19132
stuckked here not able to move…
thanks for ur support.. waiting for ur reply…

javauser007
Champ in-the-making
Champ in-the-making
Hi Alfresco,
Please help me out.

javauser007
Champ in-the-making
Champ in-the-making
Is there Any one did the Google configuration?