en:user_advanced:solr
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:user_advanced:solr [2015/02/09 10:59] – external edit 127.0.0.1 | en:user_advanced:solr [2026/02/26 23:41] (current) – [Accessing Solr Admin] kjdon | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| + | |||
| + | |||
| ======Indexing Using SOLR====== | ======Indexing Using SOLR====== | ||
| Line 5: | Line 8: | ||
| See http:// | See http:// | ||
| - | There is only rudimentary, | + | There is only rudimentary, |
| - | * Building a solr collection in GLI will stop the Greenstone server before building the collection and restart it when the collection has been rebuilt | + | * Building a solr collection in GLI will stop the Greenstone server before building the collection and restart it when the collection has been rebuilt. In more recent versions of GS3 this is no longer a problem, as newer GS3 versions do not stop and start the server for building a solr collection any more. |
| - | * 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/ | + | * 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/ |
| - | ====== Accessing Solr Admin ====== | + | ===== Accessing Solr Admin ===== |
| - | In case Greenstone server and client on the same PC open in browser http:// | + | |
| + | | ||
| + | * http:// | ||
| + | * 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:\\ '' | ||
| + | * If you are proxying localhost with apache, you'll need to add the appropriate lines to your / | ||
| + | < | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | Then restart httpd | ||
| - | In case remote Greenstone server | + | ==== 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 | ||
| Line 58: | Line 72: | ||
| The analyzers that will be used for each language are defined in the file '' | The analyzers that will be used for each language are defined in the file '' | ||
| - | If you want your own analyzer, you need to have FilterFactory and Filter Solr classes | + | Diego Spano has investigated this Spanish analyzer' |
| - | Also you need to describe your analyzer in ext/ | + | |
| + | You will need to modify the '' | ||
| + | |||
| + | |||
| + | If you want your own analyzer, you need to have the FilterFactory and Filter Solr classes placed in a jar archive. | ||
| + | Also you need to describe your analyzer in '' | ||
| < | < | ||
| < | < | ||
| Line 70: | Line 89: | ||
| </ | </ | ||
| </ | </ | ||
| - | In example above search string is sliced to words(tokens) by tokenizer. | + | In the example above, the search string is sliced to words(tokens) by the tokenizer.\\ |
| - | Further all charcaters | + | Further, all characters |
| - | On the next stage filter StopFilterFactory | + | In the next stage, the filter StopFilterFactory |
| - | Last stage is getting normalized form of word(token) by custom Filter. | + | The last stage involves |
| - | + | ||
| - | + | ||
| - | Diego Spano has investigated this analyzer' | + | |
| - | + | ||
| - | You will need to modify the '' | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
en/user_advanced/solr.1423479584.txt.gz · Last modified: 2016/08/12 07:38 (external edit)
