Hi Gert,

thanks for your rapid response!

the problem was:

we used the standard solr schema. After we copied the
/opt/fedora/gsearch/FgsConfig/configProductionOnSolr/fgsconfigFinal/index/FgsIndex/conf/schema-3.4.0-for-fgs-2.3.xml
 


into

/opt/fedora/solr/conf
and rename it to schema.conf it works :).

Now we have another questions:
How do we tell gsearch to update the index automatically?

Actually, to activate the update we have to click on browseindex and 
send a search.

Regards

Franck

Am 11.01.2012 16:26, schrieb Gert Schmeltz Pedersen:
> Hi Franck,
>
> You need to set indexBase in fgsconfig-basic.properties, when you use Solr.
>
> Regards,
> Gert
>
> On 11/01/2012, at 16.00, Franck Borel wrote:
>
>> Hi Gert,
>>
>> Am 11.01.2012 15:24, schrieb Gert Schmeltz Pedersen:
>>> Hi Franck,
>>>
>>> No updateIndex action was performed, because the action parameter has no 
>>> value, normally it is 'fromFoxmlFiles' or 'fromPid'. How did you send the 
>>> request?
>>
>> We just click on updateIndex:
>>
>> http://www.myhost.de:8080/fedoragsearch/rest?operation=updateIndex
>>
>>
>> Ok, it seems to be an connection error:
>> If we use updateIndex from PID, gsearch says:
>>
>> indexDoc=
>> <?xml version="1.0" encoding="UTF-8"?><add
>> xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/";
>> xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:foxml="info
>> :fedora/fedora-system:def/foxml#">
>> <doc>
>> <field name="PID">changeme:1</field>
>> <field name="REPOSITORYNAME">FgsRepos</field>
>> <field name="REPOSBASEURL">http://localhost:8080/fedora</field>
>> <field name="fgs.state">Active</field>
>> <field name="fgs.label">Martins Titel</field>
>> <field name="fgs.ownerId">mh1018</field>
>> <field name="fgs.createdDate">2012-01-11T10:34:32.803Z</field>
>> <field name="fgs.lastModifiedDate">2012-01-11T10:34:32.803Z</field>
>> <field name="dc.title">Der Ball ist rund</field>
>> <field name="dc.creator">Meyer, Martin</field>
>> <field name="dc.creator">Schmidt, Franck</field>
>> <field name="dc.date">2010</field>
>> <field name="dc.identifier">changeme:1</field>
>> <field name="dsm.DS1"/>
>> <field name="foxml.all.text">
>>     Der Ball ist rund
>>     Meyer, Martin
>>     Schmidt, Franck
>>     2010
>>     changeme:1
>>   Berlin im Osten
>>                   Hacker, Jack
>>                   Bang, Wang
>>    </field>
>> </doc>
>> </add>
>> DEBUG 2012-01-11 15:50:18,124 (OperationsImpl) getIndexReader
>> indexName=FgsIndex docCount=0
>> DEBUG 2012-01-11 15:50:18,124 (OperationsImpl) closeIndexReader
>> indexName=FgsIndex docCount=0
>> DEBUG 2012-01-11 15:50:18,124 (OperationsImpl) initDocCount=0 docCount=0
>> updateTotal=0
>> ERROR 2012-01-11 15:50:18,124 (RESTImpl)
>> dk.defxws.fedoragsearch.server.errors.GenericSearchException: Wed Jan 11
>> 15:50:18 CET 2012 Connection error (is Solr runni
>> ng at http://localhost:8080/solr/update ?): java.io.IOException: Server
>> returned HTTP response code: 400 for URL: http://localhost:8080/solr/update
>> DEBUG 2012-01-11 15:50:18,125 (GTransformer) transform
>> xsltPath=fgsconfigFinal/rest/adminUpdateIndexToHtml
>> sb=<resultPage><error><message><![CDATA[Wed Jan 11 15:50
>> :18 CET 2012 Connection error (is Solr running at
>> http://localhost:8080/solr/update ?): java.io.IOException: Server
>> returned HTTP response code: 400 for URL: http:
>> //localhost:8080/solr/update]]></message></error></resultPage>
>> systemId=/usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes
>> DEBUG 2012-01-11 15:50:18,132 (GTransformer) transform result=
>>
>> hmmm, solr is running on 8080...
>>
>> Regards,
>>
>> Franck
>>
>>> Regards,
>>>
>>> Gert
>>>
>>>
>>> On 11/01/2012, at 13.55, Franck Borel wrote:
>>>
>>>> Hi all,
>>>>
>>>> I have installed Fedora Commons 3.5 and Gsearch 2.3 with Solr 3.5. I use
>>>> Tomcat 6. All components works well. I have injested some objekts into
>>>> fedora, but when I try to update the index nothing happens. I use
>>>> following configuration:
>>>>
>>>> Fedora
>>>> ------
>>>> install.properties:
>>>>
>>>> ri.enabled=true
>>>> apia.auth.required=false
>>>> messaging.enabled=true
>>>> database.jdbcDriverClass=org.postgresql.Driver
>>>> database.postgresql.jdbcDriverClass=org.postgresql.Driver
>>>> ssl.available=false
>>>> database.jdbcURL=jdbc\:postgresql\://localhost/fedora3
>>>> messaging.uri=vm\:(broker\:(tcp\://localhost\:61616))
>>>> database.password=fedora
>>>> database.username=fedora
>>>> fesl.authz.enabled=false
>>>> tomcat.shutdown.port=8005
>>>> database.postgresql.driver=/usr/share/java/postgresql-jdbc.jar
>>>> deploy.local.services=true
>>>> xacml.enabled=false
>>>> tomcat.http.port=8080
>>>> fedora.serverHost=
>>>> database=postgresql
>>>> database.driver=/usr/share/java/postgresql-jdbc.jar
>>>> fedora.serverContext=fedora
>>>> llstore.type=akubra-fs
>>>> tomcat.home=/usr/share/tomcat6
>>>> fesl.authn.enabled=true
>>>> fedora.home=/opt/fedora
>>>> install.type=custom
>>>> database.postgresql.jdbcURL=jdbc\:postgresql\://localhost/fedora3
>>>> servlet.engine=existingTomcat
>>>> fedora.admin.pass=fedoraAdmin
>>>>
>>>> Solr
>>>> ----
>>>> /opt/fedora/solr
>>>>
>>>> Gsearch
>>>> -------
>>>> I have installed Gsearch using following fgsconfig-basic.properties
>>>> configDisplayName=configProductionOnSolr
>>>> gsearchBase=http://localhost:8080
>>>> gsearchAppName=fedoragsearch
>>>>
>>>> configDisplayName=configProductionOnSolr
>>>> gsearchBase=http://localhost:8080
>>>> gsearchAppName=fedoragsearch
>>>> gsearchUser=fedoraAdmin
>>>> gsearchPass=fedoraAdmin
>>>> local.FEDORA_HOME=/opt/fedora
>>>> finalConfigPath=/usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes
>>>> logFilePath=${local.FEDORA_HOME}/server/logs
>>>> logLevel=DEBUG
>>>> namesOfRepositories=FgsRepos
>>>> namesOfIndexes=FgsIndex
>>>> fedoraBase=http://localhost:8080
>>>> fedoraAppName=fedora
>>>> fedoraUser=fedoraAdmin
>>>> fedoraPass=fedoraAdmin
>>>> fedoraVersion=3.5
>>>> fedora.fcfg of this repository.
>>>> objectStoreBase=${local.FEDORA_HOME}/data/objectStore
>>>> indexEngine=Solr
>>>> indexDir=${local.FEDORA_HOME}/solr/data/index
>>>> indexingDocXslt=foxmlToSolr
>>>>
>>>> This is the gsearch log file:
>>>>
>>>> INFO 2012-01-11 13:46:44,205 (RESTImpl) request=operation=updateIndex
>>>> remoteUser=fedoraAdmin
>>>> DEBUG 2012-01-11 13:46:44,205 (GenericOperationsImpl) updateIndex
>>>> action= value= repositoryName= indexNames= indexDocXslt= resultPageXslt=
>>>> DEBUG 2012-01-11 13:46:44,205 (Config) indexName=FgsIndex
>>>> operationsImpl=dk.defxws.fgssolr.OperationsImpl
>>>> DEBUG 2012-01-11 13:46:44,205 (Config) operationsImplClass=class
>>>> dk.defxws.fgssolr.OperationsImpl
>>>> DEBUG 2012-01-11 13:46:44,205 (Config)
>>>> ops=dk.defxws.fgssolr.OperationsImpl@1b721b72
>>>> DEBUG 2012-01-11 13:46:44,205 (OperationsImpl) getIndexReader
>>>> indexName=FgsIndex docCount=0
>>>> DEBUG 2012-01-11 13:46:44,205 (OperationsImpl) getIndexReader
>>>> indexName=FgsIndex docCount=0
>>>> DEBUG 2012-01-11 13:46:44,205 (OperationsImpl) closeIndexReader
>>>> indexName=FgsIndex docCount=0
>>>> DEBUG 2012-01-11 13:46:44,205 (OperationsImpl) initDocCount=0 docCount=0
>>>> updateTotal=0
>>>> INFO 2012-01-11 13:46:44,206 (OperationsImpl) updateIndex
>>>> indexName=FgsIndex indexDirSpace=52 docCount=0
>>>> DEBUG 2012-01-11 13:46:44,206 (OperationsImpl) resultXml =
>>>> <solrUpdateIndex indexName="FgsIndex">
>>>> <counts insertTotal="0" updateTotal="0" deleteTotal="0" docCount="0"
>>>> warnCount="0"/>
>>>> </solrUpdateIndex>
>>>>
>>>> DEBUG 2012-01-11 13:46:44,206 (GTransformer)
>>>> xsltName=fgsconfigFinal/index/FgsIndex/updateIndexToResultPage
>>>> DEBUG 2012-01-11 13:46:44,210 (GTransformer) getTransformer
>>>> transformer=org.apache.xalan.transformer.TransformerImpl@60786078
>>>> uriResolver=null
>>>> DEBUG 2012-01-11 13:46:44,211 (GenericOperationsImpl) resultXml=<?xml
>>>> version="1.0" encoding="UTF-8"?>
>>>> <resultPage operation="updateIndex" action="" value=""
>>>> repositoryName="FgsRepos" indexNames="" resultPageXslt="" dateTime="Wed
>>>> Jan 11 13:46:44 CET 2012">
>>>> <updateIndex xmlns:dc="http://purl.org/dc/elements/1.1/";
>>>> xmlns:foxml="info:fedora/fedora-system:def/foxml#"
>>>> xmlns:zs="http://www.loc.gov/zing/srw/"; warnCount="0" docCount="0"
>>>> deleteTotal="0" updateTotal="0" insertTotal="0"
>>>> indexName="FgsIndex"/></resultPage>
>>>>
>>>> DEBUG 2012-01-11 13:46:44,211 (GTransformer) transform
>>>> xsltPath=fgsconfigFinal/rest/adminUpdateIndexToHtml sb=<?xml
>>>> version="1.0" encoding="UTF-8"?>
>>>> <resultPage operation="updateIndex" action="" value=""
>>>> repositoryName="FgsRepos" indexNames="" resultPageXslt="" dateTime="Wed
>>>> Jan 11 13:46:44 CET 2012">
>>>> <updateIndex xmlns:dc="http://purl.org/dc/elements/1.1/";
>>>> xmlns:foxml="info:fedora/fedora-system:def/foxml#"
>>>> xmlns:zs="http://www.loc.gov/zing/srw/"; warnCount="0" docCount="0"
>>>> deleteTotal="0" updateTotal="0" insertTotal="0"
>>>> indexName="FgsIndex"/></resultPage>
>>>>   systemId=/usr/share/tomcat6/webapps/fedoragsearch/WEB-INF/classes
>>>> DEBUG 2012-01-11 13:46:44,220 (GTransformer) transform result=
>>>> <html>
>>>>     <head>
>>>>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>>>>        <title>Admin Client for Fedora Generic Search Service</title>
>>>>        <link rel="stylesheet" type="text/css"
>>>> href="css/basic.css"><style type="text/css">
>>>>                                    .highlight {
>>>>                                            background: yellow;
>>>>                                    }
>>>>                            </style><script 
>>>> language="javascript"></script></head>
>>>>     <body>
>>>>        <div id="header"><a href="" id="logo"></a><div id="title">
>>>>              <h1>Admin Client for Fedora Generic Search Service</h1...
>>>> ...
>>>> INFO 2012-01-11 13:46:44,221 (RESTImpl) request=operation=updateIndex
>>>> timeusedms=6
>>>>
>>>>
>>>> Any idea?
>>>>
>>>>
>>>> Regards
>>>>
>>>> -- Franck
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>>> _______________________________________________
>>>> Fedora-commons-users mailing list
>>>> Fedora-commons-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>>> infrastructure or vast IT resources to deliver seamless, secure access to
>>> virtual desktops. With this all-in-one solution, easily deploy virtual
>>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>>> _______________________________________________
>>> Fedora-commons-users mailing list
>>> Fedora-commons-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>>
>> --
>> Franck Borel                 Universitaetsbibliothek Freiburg
>> Tel: +49-761 / 203-3946      Rempartstrasse 10-16  | Postfach 1629
>> Fax: +49-761 / 203-3987      79098 Freiburg        | 79016 Freiburg
>>      
>>
>> ------------------------------------------------------------------------------
>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
>> infrastructure or vast IT resources to deliver seamless, secure access to
>> virtual desktops. With this all-in-one solution, easily deploy virtual
>> desktops for less than the cost of PCs and save 60% on VDI infrastructure
>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> Fedora-commons-users mailing list
> Fedora-commons-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

-- 
Franck Borel                 Universitaetsbibliothek Freiburg
Tel: +49-761 / 203-3946      Rempartstrasse 10-16  | Postfach 1629
Fax: +49-761 / 203-3987      79098 Freiburg        | 79016 Freiburg
        

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to