User Tools

Site Tools


en:user_advanced:solr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:user_advanced:solr [2023/03/13 01:46] – external edit 127.0.0.1en:user_advanced:solr [2026/02/26 23:41] (current) – [Accessing Solr Admin] kjdon
Line 12: Line 12:
   * Java 7+ is needed to successfully build a solr collection in GLI, at least on Windows. For this to work, you will first need to have a JDK 7 installed on your machine (with the JAVA_HOME environment variable set up, and with JAVA_HOME/bin added to your PATH environment variable). Secondly, you will need to move your Greenstone 3 installation's ''packages/jre'' out of the way before running GLI, so that GLI finds your Java 7 instead.   * Java 7+ is needed to successfully build a solr collection in GLI, at least on Windows. For this to work, you will first need to have a JDK 7 installed on your machine (with the JAVA_HOME environment variable set up, and with JAVA_HOME/bin added to your PATH environment variable). Secondly, you will need to move your Greenstone 3 installation's ''packages/jre'' out of the way before running GLI, so that GLI finds your Java 7 instead.
  
-====== Accessing Solr Admin ====== +===== Accessing Solr Admin ===== 
-  * In the case of a Greenstone server and client running on the same PC, open up http://127.0.0.1:8383/solr in your browser+  * In the case of a Greenstone server and client running on the same PC, open up in your browser 
 +     http://127.0.0.1:8383/solr (Solr4) 
 +     * http://127.0.0.1:7983/solr (Solr9 - gs 3.13 and later)
   * In the case of a remote Greenstone server, you need to forward ports. Assuming the default GS3 port 8383, on a Linux terminal you'd do:\\ ''ssh -L 8383:127.0.0.1:8383 <greenstone-server-machine>''   * In the case of a remote Greenstone server, you need to forward ports. Assuming the default GS3 port 8383, on a Linux terminal you'd do:\\ ''ssh -L 8383:127.0.0.1:8383 <greenstone-server-machine>''
 +  * If you are proxying localhost with apache, you'll need to add the appropriate lines to your /etc/httpd/conf.d/<servername>-le-ssl.conf, for example:
 +<code>
 + ProxyPass /solr/ http://localhost:7983/solr/
 + ProxyPassReverse /solr/ http://localhost:7983/solr/
 +</code>
 +Then restart httpd
 +
 +==== Useful admin things ====
 +
 +Click on your core in the drop down core list on LHS. Then you can click analysis. You can select a field, then type in some text into the index box and the query box. This will show you what processes are happening on your text for indexing and querying.
  
 ==== Using analyzers specifically suited to different languages  ==== ==== Using analyzers specifically suited to different languages  ====
en/user_advanced/solr.1678671991.txt.gz · Last modified: 2023/03/13 01:46 by 127.0.0.1