Local gsearch, remote solr indexing problem

106 views
Skip to first unread message

Ege Sertçetin

unread,
Sep 21, 2016, 6:29:35 AM9/21/16
to isla...@googlegroups.com
Hello,

We are setting up Islandora to a central library in Istanbul. I go
through the documentation below:
https://wiki.duraspace.org/display/ISLANDORA/milestone+6+-+Installing+Solr+and+GSearch

https://github.com/islandora-interest-groups/Islandora-DevOps-Interest-Group/blob/master/Provisioning-Islandora-on-Ubuntu.md#gsearch-and-solr

However I need remote Solr to make sure it always works fast enought
(the old software we replace is searching very slow). I saw that
GSearch v2.8 supports remote solr, so I installed v2.8 instead of
v2.7. Solr version is v4.2.0.

Now I installed everything. GSearch admin and Solr admin are working.
But when I search for something in gsearch admin (rest) I get the
error "directory '/usr/local/fedora/solr/collection1/data/index' does
not exist" which is I understand because the index directory is in a
remote machine. There was an "indexDir" option in
"fgsconfig-basic-for-islandora.properties". What should I replace it
with? My configuration file for solr is like this:

# indexEngine is Lucene, Solr, or Zebra.
indexEngine=Solr

# FgsIndex: indexBase is the server base url, in case of Solr or Zebra.
indexBase=http://solr.ibb:8080/solr

# FgsIndex: indexDir is the path to the index.
indexDir=${local.FEDORA_HOME}/gsearch/FgsIndex/index

# FgsIndex: indexingDocXslt is the name of the indexing stylesheet.
indexingDocXslt=foxmlToSolr

Ege Sertçetin

unread,
Sep 21, 2016, 7:33:32 AM9/21/16
to isla...@googlegroups.com
UPDATE:

I changed "fgsindex.operationsImpl" key to
dk.defxws.fgssolrremote.OperationsImpl in
$CATALINA_HOME/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/index.properties.
I restarted fedora. Now I do not get errors like "directory
'/usr/local/fedora/solr/collection1/data/index' does not exist". I
added a new item to repository, however it is still not indexing
anything in solr.

lu...@discoverygarden.ca

unread,
Sep 22, 2016, 8:57:23 AM9/22/16
to islandora
Sorry about this.

Still waiting on another pull request to get merged into the guide to avoid merge conflicts. I have another fix that needs to get put in. The islandora_transforms is now a submodule of basic-solr-config. When cloning use recursive e.g. git clone --recursive https://github.com/discoverygarden/basic-solr-config.git

Ege Sertçetin

unread,
Oct 4, 2016, 8:35:48 AM10/4/16
to isla...@googlegroups.com
Thanks Luke. I cloned it properly this time. The problem was
continuing, there was no error also there was no index. Then I used
updateIndex fromFoxmlFiles button in
http://islandora.ibb:8080/fedoragsearch/rest?operation=updateIndex,
now it indexed all content I ingested.

lu...@discoverygarden.ca

unread,
Oct 4, 2016, 8:46:28 AM10/4/16
to islandora
I am getting the impression that fedoragsearch is not getting messages from Activemq. Did you try ingesting a new object to see if it gets added to the index?

Did you check your $CATALINA_HOME/logs/catalina.out and $FEDORA_HOME/server/logs/fedoragsearch.log? 

Could have a permissions issue. Did you chown/chmod the missing files that came down from the clone?

Ege Sertçetin

unread,
Oct 4, 2016, 8:52:39 AM10/4/16
to isla...@googlegroups.com
Now I changed back the owner to fedora for fedoragsearch repository
and uploaded a basic image, the count in solr admin is increased!
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google Groups
> "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to islandora+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/islandora.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/islandora/27d3c904-6a3e-45cb-b8cc-d8ad5e659565%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Luke Taylor

unread,
Oct 4, 2016, 8:53:22 AM10/4/16
to isla...@googlegroups.com
Great to hear!

Luke Taylor
DevOps Team Lead
discoverygarden inc.
155 Queen St. Suite 101
Charlottetown, PE C1A 4B4 
902.367.3851 discoverygarden.ca
lu...@discoverygarden.ca

On Tue, Oct 4, 2016 at 9:52 AM, Ege Sertçetin <sertce...@gmail.com> wrote:
Now I changed back the owner to fedora for fedoragsearch repository
and uploaded a basic image, the count in solr admin is increased!

2016-10-04 15:46 GMT+03:00  <lu...@discoverygarden.ca>:
> I am getting the impression that fedoragsearch is not getting messages from
> Activemq. Did you try ingesting a new object to see if it gets added to the
> index?
>
> Did you check your $CATALINA_HOME/logs/catalina.out and
> $FEDORA_HOME/server/logs/fedoragsearch.log?
>
> Could have a permissions issue. Did you chown/chmod the missing files that
> came down from the clone?
>
> On Tuesday, October 4, 2016 at 9:35:48 AM UTC-3, Ege Sertçetin wrote:
>>
>> Thanks Luke. I cloned it properly this time. The problem was
>> continuing, there was no error also there was no index. Then I used
>> updateIndex fromFoxmlFiles button in
>> http://islandora.ibb:8080/fedoragsearch/rest?operation=updateIndex,
>> now it indexed all content I ingested.
>
> --
> For more information about using this group, please read our Listserv
> Guidelines: http://islandora.ca/content/welcome-islandora-listserv
> ---
> You received this message because you are subscribed to the Google Groups
> "islandora" group.
> To unsubscribe from this group and stop receiving emails from it, send an
--
For more information about using this group, please read our Listserv Guidelines: http://islandora.ca/content/welcome-islandora-listserv
---
You received this message because you are subscribed to a topic in the Google Groups "islandora" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/islandora/ANjcr5y4ZpI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to islandora+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages